in reply to lazy creation of a hash
updated: "each" removed -- owing to comment from Moritz -- this becomes the code for my next idea, to allow Perl to optimise the test its own sweet way - seems likely to be optimised - I even doubt it's really needed to put "scalar" in front.%h or $object -> init( \%h );
One world, one people
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: lazy creation of a hash
by moritz (Cardinal) on May 12, 2011 at 13:31 UTC | |
|
Re^2: lazy creation of a hash
by John M. Dlugosz (Monsignor) on May 13, 2011 at 01:10 UTC |