Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: How to export a package sitting lower in a module?

by Corion (Pope)
on Apr 22, 2013 at 14:56 UTC ( #1029899=note: print w/ replies, xml ) Need Help??


in reply to Re^4: How to export a package sitting lower in a module?
in thread How to export a package sitting lower in a module?

That's how use works. It works best if you put separate packages into separate files.

If you don't want to do that, but still want to use Exporter, you have to call pack_B->import yourself, just like use describes.

use pack_A; # implicitly calls pack_A->import() pack_B->import(); # explicitly call pack_B->import()

But maybe you really do not want to have both, pack_A and pack_B in a single file?


Comment on Re^5: How to export a package sitting lower in a module?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-12-29 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls