Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Is it possible to use key/values of a Hash/Hash ref while it's being initialized?by ikegami (Patriarch) |
on Sep 15, 2005 at 02:35 UTC ( [id://492105]=note: print w/replies, xml ) | Need Help?? |
or
or (the wacky)
or (the efficient)
or (using auto-vivification)
or
or
or (in two steps)
Updated: Added more alternatives. Updated: Fixed bug. Changed $_ to $key in the concatenation in later snippets. Updated: Added more alternatives.
In Section
Seekers of Perl Wisdom
|
|