perl

Rebuild all CPAN modules
cpan -r
Upgrade all CPAN modules

Install software:

curl -L http://cpanmin.us | perl - App::cpanminus
cpanm App::cpanoutdated

Run updates:

cpan-outdated -p | cpanm

Gentoo

Rebuild modules after upgrading perl

perl-cleaner --all