Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: Modules included more than once

by dada (Chaplain)
on Aug 22, 2002 at 11:28 UTC ( [id://191985]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Modules included more than once
in thread Modules included more than once

the problem is not in circular includes. circular includes are just fine. I suspect the problem is in:
package OBJECT_SERVICES; use SUPPORT; use SUPPORT qw( %typeConvert %enumeratedTypes);
why do you use SUPPORT twice? the second use should be enough.

cheers,
Aldo

King of Laziness, Wizard of Impatience, Lord of Hubris

Replies are listed 'Best First'.
Re: Re: Re: Re: Modules included more than once
by PodMaster (Abbot) on Aug 22, 2002 at 12:14 UTC
    It's probably cause he's doing stuff he shouldn't be doing.
    perl -Mstrict -w -MCGI -MCGI=*table -e 1 perl -Mstrict -w -MCGI::Carp -MCarp -e 1
    The Carp does it cause has to perform magic. That is why you should use warnings;
    perl -Mstrict -Mwarnings -MCGI::Carp -MCarp -e 1

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.

Re: Re: Re: Re: Modules included more than once
by physgreg (Scribe) on Aug 22, 2002 at 13:10 UTC
    I suspect that there is something going on with my circular includes, as I do not get the warning if I remove one half of circle. I think the problem is caused by 'use' commands in each module interacting badly with 'use' commands in the super-package that ties everything together. As the modules are never used except through this, I have removed all the redundant calls, and the warnings seem to have disappeared.
    Thanks to everyone for their help!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-16 23:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found