|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Can't call method on an undefined valueby andal (Pilgrim) |
| on Nov 16, 2011 at 08:37 UTC ( #938334=note: print w/ replies, xml ) | Need Help?? |
|
Check when the method is called. It might happen that you call it before the variable "$logger" is created in main. For example this might happen if you call it directly in the body of the module you "use". Here's example.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||