in reply to Re: How to empty an array ???
in thread How to empty an array ???
In perl, there typically never is a need to empty an array.Except, when you're running low on memory. Explicitly using an undef @flowers might help you in that case even if the array goes out of scope and most of its memory would get reclaimed anyway.
But usually, using the right scope for variable declaration is enough.
|
|---|