in reply to Can't call method on an undefined value

For arguments sake A and C are fine but for some reason B returns the error message:

B is already a module, a core module, pick different names, say Zettai::B

  • Comment on Re: Can't call method on an undefined value

Replies are listed 'Best First'.
Re^2: Can't call method on an undefined value
by Zettai (Acolyte) on Nov 16, 2011 at 03:46 UTC
    Sorry, I was using A and B as examples and didn't realise they were already core modules. I have updated the question.

      cpan's log4perlsays "You can get a logger anytime via a singleton mechanism:".

      I think you can reproduce your situation if you make simple example codes. I am not sure about relation between main package and foo/bar/baz packages,especially. Readmore tag seems to be recommended for a sample code which becomes long, I put them below.

      regards