in reply to Re: Best Hash Practices?
in thread Best Hash Practices?
Yes, this is the direction I was headed with this too... It would be nicer though if the input to the function was just the autovivified list of keys though, so we could maintain a more usual appearance, like:
print 6, isDefined($h{"a"}{2}{c}{4});This is a kind of standard function that I think should be developed more thoroughly for everyone to use regularly; Either that, or the fundamentals of the way a multidimensional hash is handled should possibly be re-evaluated to recognize when something is being created vs when it's being tested...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Best Hash Practices? (tie)
by LanX (Saint) on Oct 12, 2009 at 20:14 UTC |
In Section
Seekers of Perl Wisdom