Granted. But besides the speed issue, the result is effectively the same.
In the case of undef @array, @array does not actually get undefined (i.e., it still exists), just emptied, however more efficiently than with @array = ().
In reply to Re(4): undef'ing @arrays caveat
by dmmiller2k
in thread undef'ing @arrays caveat
by vladb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |