Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Module Loading via Exporter doubt.

by tlm (Prior)
on Jul 12, 2005 at 01:15 UTC ( [id://474144]=note: print w/replies, xml ) Need Help??


in reply to Module Loading via Exporter doubt.

For the sake of completeness, you can just grab Exporter::import without inheriting it:

package Foo; require Exporter; *import = \&Exporter::import;

Update: I just learned from tilly's latest meditation that there is now a simpler way to achieve the same end result:

package Foo; use Exporter 'import';

the lowliest monk

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2024-04-19 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found