I'm not sure what you're asking. For any given variable, you can release its contents using undef. This is true regardless of the variable's scope (i.e., it's true for globals and lexicals both).
my $scalar = 'scalar of doom'; my @array = qw( things I want to forget ); my %hash = ( preservation_required => 'false' ); undef $scalar; undef @array; undef %hash;
In reply to Re: How to destroy variables and hash?
by kyle
in thread How to destroy variables and hash?
by PerlPhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |