Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Problem undefining a variable in a loop using a module causing a list to not empty after use of a subroutineby chuckbutler (Monsignor) |
on Apr 07, 2010 at 04:19 UTC ( [id://833180]=note: print w/replies, xml ) | Need Help?? |
LA: @classes and %classes are declared at the top lex level of the package, so they with not go out of scope until the program exits. When it is appropriate, within a routine in the package, you can:
to empty them. Good luck. -c
In Section
Seekers of Perl Wisdom
|
|