Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Module Loading via Exporter doubt.

by broquaint (Abbot)
on Jul 11, 2005 at 13:32 UTC ( #473926=note: print w/replies, xml ) Need Help??

in reply to Module Loading via Exporter doubt.

Why do we need to inherit Exporter in our current package?
This is so the module can inherit Exporter's import method.
By writing the 2 lines above does the symbols present in the current package will be automagically exported to the program where we use this package? If so how?
To automagically export symbols Exporter uses the package variables @EXPORT, @EXPORT_OK and %EXPORT_TAGS from the class that inherits from it and exports as appropriate.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://473926]
[Discipulus]: coming from the meaning of 'mixed dish'
[Discipulus]: thanks hippo! the hat you passed me was brand new and clean, thanks
LanX OS builds on multitasking humor ...
[LanX]: ... next release comes with even more random puns!

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-07-28 10:01 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (426 votes). Check out past polls.