Paul Lalli wrote:
> wrote:
> > [...]
> > > There is nothing called MCPAN.
> >
> > Sorry, I really did not know that the interactive shell for
> downloading
> > modules was actually CPAN.pm. That is really helpful. Now that I
> know
> > what I'm using, I'll read about it. I'm glad that it's not really
> > MCPAN. It sounds like a McDonald's breakfast. Thanks!
>
> The -M in
> perl -MCPAN -e'shell'
> is a command line option that loads a module. Saying -MCPAN is the
> equivalent of saying
> use CPAN;
> within a script. Read more about it in
> perldoc perlrun
>
> Paul Lalli
Thanks!
I finally got things working, though it took a little experimentation.
The following may be helpful as it worked for me:
create this path and file:
~/.cpan/CPAN/MyConfig.pm
Then put the following in the file:
$home = $ENV{'HOME'};
$CPAN::Config = {
cpan_home=>$home
};
1;
__END__
then type the usual:
perl -MCPAN -e shell
and answer all of the questions.
Look out for the one about PREFIX= so you can let it know where you
want your modules to go.
The contents of the MyConfig.pm gave me the most trouble.
wana