Well apart from commending the destructor is there any other way to fix it?
Ok, see http://perldoc.perl.org/perlobj.html#Destructors where you copied that bit of code from for the answer
In reply to Re^3: (in cleanup) Can't call method "close" on an undefined value at somePerlModule.pm line number. (perlobj/Destructors)
by Anonymous Monk
in thread (in cleanup) Can't call method "close" on an undefined value at somePerlModule.pm line number.
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |