Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^7: Can I retry "use" when module load fails?

by dsheroh (Parson)
on Apr 15, 2013 at 08:51 UTC ( #1028706=note: print w/ replies, xml ) Need Help??


in reply to Re^6: Can I retry "use" when module load fails?
in thread Can I retry "use" when module load fail ?

Yes. When you use Exporter in a module, it inherits a standard ->import() sub from Exporter, so your module does then have an import method even though you didn't define it yourself.

All Exporter really does is make symbols available to be imported. Nothing actually happens until the useing module calls import to specify which of the available symbols it wants to import. (e.g., use POSIX 'ceil'; to import only the ceil symbol from POSIX.)


Comment on Re^7: Can I retry "use" when module load fails?
Select or Download Code
Re^8: Can I retry "use" when module load fails?
by exilepanda (Monk) on Apr 15, 2013 at 10:55 UTC
    Big Thanks!! Didn't realize there can be an inherit tricks inside, I got it now! =)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2015-07-04 10:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls