![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Re: undef'ing @arrays caveatby Juerd (Abbot) |
on Apr 20, 2002 at 23:01 UTC ( #160818=note: print w/replies, xml ) | Need Help?? |
True, and in fact if you undef @array the effect is identical. Try using Devel::Peek. undef @array sets MAX to -1, @array = () does not. Or use Benchmark and find out that undef @array is about twice as fast. The effect is the same, but internally, there's something entirely different going on.
In Section
Meditations
|
|