undef @struct; (better written as @struct = (); btw)
Not if the goal is to free up space rather than just empty it for reuse:
@a = 1..1e6;; print total_size \@a;; 32000176 @a = ();; print total_size \@a;; 8000176 undef @a;; print total_size \@a;; 176
In reply to Re^2: passing reference to subroutine
by BrowserUk
in thread passing reference to subroutine
by asthaonard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |