Mike Meyer;545338 Wrote:
> Thanks Greg. That's what I was looking for. I was planning on passing
> in variables instead of strings and can't figure out the syntax for
> that either.
>
> Looking for some flavor of this:
> $mikeHash{'gameTime'} = $Player;
>
> Erland, if you beat Greg out here feel free to chime in. I know it's
> basic stuff.
>
> Thanks again.
Like you have shown there you'd just substitute your variable name
where the string is.
Within your code you can also use the hash location instead of a
dedicated variable. Both can be used to store string data.
Code:
--------------------
my $sport = 'soccer';
my $gameID = 'Game1';
...
my %mikeHash;
$mikeHash{'sport'} = $soccer;
$mikeHash{'gameID'} = $gameID;
...
addCustomSportScore(\%mikeHash);
--------------------
--
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=77864
_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive