Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029899]
help
Chatterbox?
[Eily]: Easy, fetch the list of all the modules that are not on CPAN and remove the ones on Github
[Corion]: Eily: Sure, but I haven't written that yet ;)
[Eily]: wait, *keep* only the ones on Github, otherwise you'll still have an infinit list
[Eily]: Corion so until you write it, the module that lists the module that do not exist on CPAN should return itself
choroba has just learned how to tell a chemist from a blue collar
[Corion]: Eily: Wheee! ;))

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-04-24 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (437 votes). Check out past polls.