Friday, August 7, 2009

Perl and CPAN reconfigure

To reconfigure CPAN do the following:

perl -MCPAN -e shell

When inside the shell...type:

cpan> o conf init

That's it...you will get interactive question and answer to setup CPAN etc...cheers.

Another way to do this is ..just by executing cpan directly from shell.. as pointed out by chorny :) thx.
# cpan
cpan> o conf init


Again..there maybe more ways to do this...choose yours :)

1 comment:

chorny said...

-M is a switch, so module is called CPAN :)
You can launch it from command line with `cpan`.