Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Auto install of a perl package if 'use' statement fails

by Anonymous Monk
on Nov 07, 2006 at 06:43 UTC ( #582578=note: print w/replies, xml ) Need Help??


in reply to Auto install of a perl package if 'use' statement fails

you could use an eval to test the existance of a particular module.
use CPAN; eval "use My::Module" or do { CPAN::install("My::Module"); # or your code to install your custom module };

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2022-01-27 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (70 votes). Check out past polls.

    Notices?