Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

perl -MCPAN -e install

by eserte (Deacon)
on Apr 23, 2004 at 13:36 UTC ( [id://347618]=perlmeditation: print w/replies, xml ) Need Help??

I just found out that the often-used command
perl -MCPAN -e "install Module::Name"
should really be written
perl -MCPAN -e "install 'Module::Name'"
Why? Just try to install LWP::UserAgent...

Replies are listed 'Best First'.
Re: perl -MCPAN -e install
by Tomte (Priest) on Apr 23, 2004 at 16:00 UTC

    See can't install URI from CPAN for an explanation and another "case-study" :).

    I guess there will always be someone bitten by implicit constructs...

    regards,
    tomte


    An intellectual is someone whose mind watches itself.
    -- Albert Camus

Re: perl -MCPAN -e install
by Stevie-O (Friar) on Apr 24, 2004 at 02:44 UTC
    perl -MCPAN -e 'install +LWP::UserAgent'
    ;-)

    Actually, doing that eliminates the need for quoting:

    perl -MCPAN -e install+LWP::UserAgent
    --Stevie-O
    $"=$,,$_=q>|\p4<6 8p<M/_|<('=> .q>.<4-KI<l|2$<6%s!<qn#F<>;$, .=pack'N*',"@{[unpack'C*',$_] }"for split/</;$_=$,,y[A-Z a-z] {}cd;print lc
Re: perl -MCPAN -e install
by bl0rf (Pilgrim) on Apr 24, 2004 at 02:04 UTC
    From the amount of bitterness in your post it shows that you had a mighty unpleasant time with this problem :-). I feel your pain.

A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found