Depending on your algorithm, you could try taking advantage of my and scoping; something like this:
That will restrict @array's scope to the loop.while($condition){ my @array; .. .. }
You can also use undef to undefine the array.
Hmm Just had the idea I could just loop the array and pop(). Is that the best way?
This depends on how the algorithm using the array is set up.
emc
Insisting on perfect safety is for people who don't have the balls to live in the real world.
In reply to Re: How to delete an array
by swampyankee
in thread How to delete an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |