Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Namespaces and modules

by Anonymous Monk
on Feb 09, 2015 at 15:59 UTC ( [id://1116072]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Namespaces and modules
in thread Namespaces and modules

Corion is right, and you will be happier in the long run if you follow that advice. I just wanted to note that if I move your use Foo; / use Bar; statements after the respective BEGIN blocks, your example code works for me. I'm guessing it could also be some interaction with Exporter (but I haven't yet bothered to track it down exactly). Or, changing the calls to the functions to use the fully qualified names (Foo::...) works too.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found