Perl-Sensitive Sunglasses | |
PerlMonks |
Re: deleting all the elements of an arrayby archen (Pilgrim) |
on Dec 14, 2001 at 04:59 UTC ( [id://131855]=note: print w/replies, xml ) | Need Help?? |
you can also clear an array by setting it's ending index to -1 like It's probably more intuitive to set it to an empty list though (as people have been saying)
In Section
Seekers of Perl Wisdom
|
|