Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

by Old_Gray_Bear (Bishop)
on Nov 07, 2006 at 06:27 UTC ( #582576=note: print w/replies, xml ) Need Help??

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

I also am afraid of 'automatic installation' tools. Like jbruger I prefer to exercise (a modicum) of control over what gets installed on my machines. It's not that I don't trust my User community, I can't. I am the 'responsible party' when the SEC auditors come through, and I don't want to have to explain what package Xyz::IOwn::TheWorld is doing on a (supposedly) secure server that happens to be handling credit-card data. I am willing to install what the user wants/needs (within reason), when asked, but I do need to have a piece of paper for the files.

And the other side of that coin is the tyographical error problem: The number of times I type "use warnigns;" is legion. With 'auto-install of package on use failure', then every time I typoed, Perl would have to take time out to search CPAN, determine that the module didn't exist, and report back; I'd get a lot grayer waiting. I'd be sorely tempted to build my own pragmas (with the appropriate mis-spelled name) to get around it. That would get to be both a maintenance headache and a distribution nightmare. I much prefer the current polite error message followed by a quick exit, stage left.

I Go Back to Sleep, Now.


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-01-28 23:39 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (74 votes). Check out past polls.