Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Recursive use causes subroutine redefinition

by prowler (Friar)
on Sep 08, 2004 at 14:38 UTC ( #389379=note: print w/replies, xml ) Need Help??

in reply to Re: Recursive use causes subroutine redefinition
in thread Recursive use causes subroutine redefinition

So the use/require check is based on whether the module has been loaded by use/require before, and doesn't count the explicit loading of the module at the command line? Thanks for the info - that explains why no warnings were output when the script was actually in use then.

As I hinted at in the original message (but didn't make very clear) the reason that I noticed (and was annoyed by) those warnings was that Eclipse (with the Perl plugin) does compile time checking of code and provides a list of the errors/warnings it can find - this was being cluttered up by those warnings.

 - Spelling is a demanding task that requies you full attention.

  • Comment on Re^2: Recursive use causes subroutine redefinition

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://389379]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2020-11-25 11:56 GMT
Find Nodes?
    Voting Booth?

    No recent polls found