Syncing perl modules between servers/architectures

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/virtual/rlogix/includes/ on line 311.

This probably should be automated....

Configure Cpan: cpan -e
cpan> o conf prerequisites_policy follow
cpan> o conf commit

On source host:
cpan> autobundle

Open Bundle file. Remove header and footer files, leaving modules in between. Copy the bundle file over to dest host as /tmp/modulelist.

On dest host:
PERL_MM_USE_DEFAULT=1 /sites/utils/bin/perl -MCPAN -e 'open(F, "/tmp/modulelist"); while () { split(" ", $_); next if (!@_[0]); print "INSTALLING: @_[0]\n"; CPAN::Shell->notest(install => @_[0]); }'