![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Dynamic Hash valueby GrandFather (Saint) |
on Apr 21, 2010 at 08:04 UTC ( #835987=note: print w/replies, xml ) | Need Help?? |
Why? Although there are ways to achieve the effect you describe (as others have indicated), it is likely that what you want to do can best be approached in a different way. Corion's sub get_SAS is a good example of how a very slight rethink of the problem may yeld a better solution, but we can't help you best (except by guessing and getting lucky) unless you supply the bigger picture. Given that you show the result of printing the values contained in the hash it may be that you don't need a hash at all, but that an array may be more appropriate. How can we tell?
True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|