Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Use a CPAN module that is not installed! Is this a good idea?

by syphilis (Archbishop)
on Jun 18, 2018 at 04:55 UTC ( [id://1216836]=note: print w/replies, xml ) Need Help??


in reply to Use a CPAN module that is not installed! Is this a good idea?

Thoughts?

Take a look at Acme::Everything, which takes the idea a little further. AIUI, one can do stuff like:
> perl -MAcme::Everything -le 'print Math::GMP->new(42);'
and if Math::GMP has been installed, then it will be loaded and the code executed.
If Math::GMP has not been installed, then it (and any missing dependencies) will be installed, loaded, and the code then executed.

However, I've not tried Acme::Everything - nor am I likely to ;-)
I think it was done merely as a quirky bit of fun.

Cheers,
Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found