XP is just a number | |
PerlMonks |
Re: Hash questionby Bilbo (Pilgrim) |
on Jun 04, 2003 at 13:54 UTC ( [id://262985]=note: print w/replies, xml ) | Need Help?? |
Each entry in a hash is a scalar, so it contains just one value. However, this value can be a reference to an array. You should see perlref for details. You can put an array reference into your hash using
You can put individual entries in your hash using:
To get them out again use $hash{key}->[0] etc, or get the whole array using @array = @{$hash{key}}.
In Section
Seekers of Perl Wisdom
|
|