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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: When cpan returns the dreaded "won't install without force"
by marto (Cardinal) on Mar 24, 2013 at 08:42 UTC | |
by Lady_Aleena (Priest) on Mar 24, 2013 at 19:19 UTC | |
by marto (Cardinal) on Mar 24, 2013 at 20:14 UTC |