in reply to How to delete an array
Just use an array lexically scoped to the body of the loop.
while ( $looping_is_desirable ) { my @new_array_every_time; # work, work, work } [download]
In general, you can delete the contents of an array with undef.