@temp = (); only empties the array, undef @temp; completely removes it from memory. For the latter, the final memory consumption will be ever so slightly less. If you want to use the array again, the former will be just a teeny weeny little bit faster.
But like I said, don't break your head over it. The difference is negligible.
In reply to Re: how to clear an array
by bart
in thread how to clear an array
by pglenski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |