in reply to Re: (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.

Hello Mr. Muskrat,

Thank you for your input, it starts to make more sense. But as you said, how can I understand when is needed to use Destructor or not? Is there some way to do understand it or is it based on experience?

Seeking for Perl wisdom...on the process of learning...not there...yet!
  • Comment on Re^2: (in cleanup) Can't call method "close" on an undefined value at somePerlModule.pm line number.
  • Select or Download Code

Replies are listed 'Best First'.
Re^3: (in cleanup) Can't call method "close" on an undefined value at somePerlModule.pm line number.
by Mr. Muskrat (Canon) on Feb 02, 2015 at 18:22 UTC

    It's definitely going to be easier when you have more experience. :)

    Basically it boils down to knowing how you have created the object and what you have stored in it.