Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: When cpan returns the dreaded "won't install without force"

by Lady_Aleena (Chaplain)
on Mar 24, 2013 at 04:31 UTC ( #1025106=note: print w/ replies, xml ) Need Help??


in reply to Re: When cpan returns the dreaded "won't install without force"
in thread When cpan returns the dreaded "won't install without force"

Yes dasgar, I am using Windows XP SP3. I was hoping to get away from the command line and maybe write something in a script where I could dump several modules into a list and just run the script, maybe before I go to bed. I would have more control with a script over with the command line. Trust me, doing anything on the command line on a Windows machine is a pain. Here is a non-working untested beginnings of an idea.

use strict; use warnings; use CPAN; my $CPAN = CPAN->new(); for my $module (@modules) { my $install = $CPAN->install($module); my $file = "module-name-with-hyphens.txt"; open(my $fh, '>', $file) or die $!; print $fh $install; }

I am not sure the above will do what I want, but it is the general direction I am leaning toward.

Have a cookie and a very nice day!
Lady Aleena


Comment on Re^2: When cpan returns the dreaded "won't install without force"
Download Code
Re^3: When cpan returns the dreaded "won't install without force"
by marto (Chancellor) on Mar 24, 2013 at 08:42 UTC

    "Trust me, doing anything on the command line on a Windows machine is a pain."

    How so?

      marto, again apologies for the lack of specificity. Running perl scripts and checking syntax (perl -c) are okay, however perl -e gets on my nerves most of the time. Maybe I am just a big baby who likes her text editor toys like bracket match and pretty colors.

      Have a cookie and a very nice day!
      Lady Aleena

        All this and more with Parde.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-07-12 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls