You don't say what release of perl you use or how you installed your modules or how you will install modules on your new version of perl. These details may make a difference to what you can do.
I use Strawberry perl and install additional modules with cpan. To re-install all currently installed modules after installing a new version of perl I would use the cpan -a command from the old version of perl to create a bundle listing all currently installed modules then install this bundle from the new version of perl.
I rarely do this. Over time the set of modules installed on my system grows as I try various new ones. I generally only use a small subset of these on an ongoing basis. When I install a new version of perl, I usually only install additional modules as needed.