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.