in reply to upgrade perl 5.6.1 to 5.8.5

To update the modules you have installed, use CPAN's autobundle command:

$ perl -MCPAN -e shell CPAN> autobundle

This writes a list of all of the modules you have installed to a bundle file under your CPAN home directory. (Mine is /usr/src/cpan/Bundle/Snapshot_2005_03_09_00.pm.)

When you install the new version, configure CPAN with the same directory, then run:

$ cpan install Bundle::Snapshot_2005_03_09_00

(Change the name of the module appropriately.)

Update: Corrected first command line.

Replies are listed 'Best First'.
Re^2: upgrade perl 5.6.1 to 5.8.5
by 5mi11er (Deacon) on Mar 09, 2005 at 22:09 UTC
    THAT's what that's for! I was just messing in CPAN today and wondered, "what's autobundle? :I try it: Created a 'snapshot' for me, but why?"

    -Scott