Re: Trouble installing module: "LWP not available"
[email protected] ((Andreas J. Koenig)) Sat, 11 Nov 2006 11:49:09 +0100
| Newsgroups | perl.cpan.discuss |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On Wed, 08 Nov 2006 16:55:21 +1100, Adam Kennedy <[email protected]> said: > Andreas > Speaking of bad configs, I think I might be a good idea to start > adding some basic error checks. > Yesterday I got caught by the various paths not allowing the use of > tilde ~. Instead of my homedir, it installed to a directory called, > literally, "~". > Apart from being a little annoying, fixing it required I make the > scariest command I've ever done on a production system. > rm -rf "~" (Advise: Scary, but if you make it ./~ it is much less scary.) CPAN::FirstTime does already check if a path is absolute. I've now added a sanity check to my copy that warns if a tilde is entered and allows for either correction or confirmation. Thanks, -- andreas