in reply to How to destroy variables and hash?

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;

Replies are listed 'Best First'.
Re^2: How to destroy variables and hash?
by PerlPhi (Sexton) on May 17, 2007 at 17:11 UTC

    oww thanks... it solves my little problem.