Just another Perl shrine | |
PerlMonks |
Re: How to build a hash?by Roy Johnson (Monsignor) |
on Apr 25, 2005 at 12:10 UTC ( [id://451146]=note: print w/replies, xml ) | Need Help?? |
Usually by assigning one element at a time: $hash{$key} = $value; where $key and $value are determined (often within a loop) at runtime.
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|