in reply to Re^2: (in cleanup) Can't call method "close" on an undefined value at somePerlModule.pm line number.
in thread (in cleanup) Can't call method "close" on an undefined value at somePerlModule.pm line number.

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

  • Comment on Re^3: (in cleanup) Can't call method "close" on an undefined value at somePerlModule.pm line number. (perlobj/Destructors)