Just use an array lexically scoped to the body of the loop.
while ( $looping_is_desirable ) { my @new_array_every_time; # work, work, work }
In general, you can delete the contents of an array with undef.
In reply to Re: How to delete an array
by kyle
in thread How to delete an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |