Just another Perl shrine | |
PerlMonks |
Re^2: Problem undefining a variable in a loop using a module causing a list to not empty after use of a subroutineby amedico (Sexton) |
on Apr 07, 2010 at 04:18 UTC ( [id://833179]=note: print w/replies, xml ) | Need Help?? |
No, I think the OP is referring to @classes and %classes in the first file, "Classes.pm". In that package, @classes and %classes are being used as global shared state for the various functions. There, @classes and %classes need to be reset before each new call to class_data, or else the data from separate calls will commingle.
In Section
Seekers of Perl Wisdom
|
|