zentara has asked for the wisdom of the Perl Monks concerning the following question:

I'm currently using 5.6.1 with a modules directory of a couple
hundred modules which I have installed into 5.6.1.
I would like to upgrade to Perl 5.8, but have CPAN do it
automatically. As a fallback, I would like to keep my old 5.6.1
install separate. So has someone developed a cpan script, that
will take a list of your currently installed modules, and install
them on a new 5.8 installation?
Will autobundle do this?
Thanks

Replies are listed 'Best First'.
Re: moving to 5.8 automagically with CPAN
by RMGir (Prior) on Aug 06, 2002 at 19:02 UTC
    Check out Techniques for Upgrading to 5.8.0.

    It looks like that's the point of autobundle, so your odds are good.

    I haven't upgraded myself yet, but I'd recommend backing up your perl tree before trying it, in case you want to come back down to 5.6.1...
    --
    Mike

Re: moving to 5.8 automagically with CPAN
by zentara (Cardinal) on Aug 07, 2002 at 00:45 UTC
    Yeah, thanks for that link, it had the information I needed.
    This is what I finally did. First, use the old 5.61 perl to run the following script:
    #!/usr/bin/perl + use CPAN; + autobundle();
    That will create a file in ~/.cpan/Bundle called
    Snapshot_2002_08_06_00.pm
    Now run the following script with the 5.8 perl
    #!/usr/local/bin/perl + use CPAN; + install 'Bundle::Snapshot_2002_08_06_00';
    If you are lucky, it will do it. You may get some problems
    with complex modules, like SOAP, so just delete that entry
    from the snapshot and try again. :-) Also, you can run this as a non-root user, and it will download,
    and build, but you will need to go thru later as root, to do
    the "make install".