There's more than one way to do things | |
PerlMonks |
Re: How do I dynamically create a hash table?by tedv (Pilgrim) |
on Oct 27, 2000 at 20:54 UTC ( [id://38849]=note: print w/replies, xml ) | Need Help?? |
In other words, just assign a new key/value pair using $hash{$key} = $value. It's the logical compliment of how you'd access a hash value: $value = $hash{$key} -Ted
In Section
Seekers of Perl Wisdom
|
|