No such thing as a small change | |
PerlMonks |
Is it possible to use key/values of a Hash/Hash ref while it's being initialized?by shiza (Hermit) |
on Sep 14, 2005 at 19:55 UTC ( [id://491993]=perlquestion: print w/replies, xml ) | Need Help?? |
shiza has asked for the wisdom of the Perl Monks concerning the following question:
Say we have:
Basically, I'd like to do something like:
This is just out of curiosity. I'm well aware of other ways to accomplish the same. For instance:
UPDATE: ----------------------------------------- I appreciate the solutions provided thus far, but in order to help everyone see what I'm trying to do, I'll add some more detail:
The value of key1 has to be laying around somewhere?!? ------------------------------------------ Thanks in advance.
Back to
Seekers of Perl Wisdom
|
|