in reply to Re^2: Perl oddities
in thread Perl oddities
In the above case yes but as the number of keys is increased the buckets will get reused and the result won't be correct:
:-)$ perl -le '%h = (1 .. 10); print scalar %h' 5/8 $ perl -le '%h = (1 .. 12); print scalar %h' 5/8 $ perl -le '%h = (1 .. 100); print scalar %h' 33/64
Actually, I searched for a genuine use for this feature for a long time and I almost found one: Power Twool.
--
John.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl oddities
by fergal (Chaplain) on Mar 01, 2005 at 18:19 UTC |
In Section
Meditations