in reply to Re: passing reference to subroutine
in thread passing reference to subroutine
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
|
|---|