in reply to When you change Perl versions, how do you resync all the CPAN modules you have installed [tag://sysadmin,cpan,modules,upgrade]

I have a script that I use to build the Perl environment for my applications. I never install stuff in the system Perl - that's for the system. So, when I want to upgrade Perl, I just rerun the script which does the following:
  1. Grabs the specified Perl source
  2. Builds it with the specified switches in the given directory
  3. Installs a list of CPAN modules with that specific perl

Remember - you're wondering about maintenance of a scripting language. You use it for automating all your other sysadmin tasks . . .


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: When you change Perl versions, how do you resync all the CPAN modules you have installed [tag://sysadmin,cpan,modules,upgrade]

Replies are listed 'Best First'.
Re^2: When you change Perl versions, how do you resync all the CPAN modules you have installed [tag://sysadmin,cpan,modules,upgrade]
by polettix (Vicar) on Nov 13, 2007 at 23:09 UTC
    Could you share the script? Moreover, I compiled perl by myself some time ago, but I don't remember which switches I used. Is there somewhere I can look for this info?

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Io ho capito... ma tu che hai detto?

      perl -V (that's a capital V) should tell you most, if not all, of what you need to know.

      Where would I put the script? Should this be something I upload to CPAN?

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
        I "see" at least three candidate places: CPAN, the Code Catacombs and this very thread. More or less it depends on how much you would like to receive feedback and bug reports, IMHO; putting stuff on CPAN could generate more traffic and "bug reports", while putting it here in Perl Monks restricts its visibility and makes it less "official".

        Flavio
        perl -ple'$_=reverse' <<<ti.xittelop@oivalf

        Io ho capito... ma tu che hai detto?