Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How can I completely empty out a list;by vroom (His Eminence) |
on Jan 25, 2000 at 22:08 UTC ( [id://2435]=note: print w/replies, xml ) | Need Help?? |
You can do any of these things: assign an empty list to the
array, undef it or assign -1 to its "last index value".
$#array = -1 was originally contrbuted by Benne -- Ed.
In Section
Seekers of Perl Wisdom
|
|