in reply to undef'ing @arrays caveat
Since undef is a perfectly valid value for an element of an array, what your doing is no different than @array = ( undef ); sans the parens.
Also, while @array = () may do what you want, @array is still defined; it just evaluates as false when you test for truth (which you were).
To truly undefine @array you'd want to use undef @array; instead.
--k.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: undef'ing @arrays caveat
by dmmiller2k (Chaplain) on Apr 20, 2002 at 22:46 UTC | |
by Kanji (Parson) on Apr 21, 2002 at 01:16 UTC |