Below is an example of little module I use for checking what modules are loaded at compile time by a script or module. It will not show you what modules are loaded at run time using 'require' though. You probably modify it to see if the modules being loaded are old ones you want to get rid of.
package Dependancies;
=head1 NAME
Dependancies
=head1 SYNOPSIS
perl -MDependancies -c <PERL FILE>
=head1 DESCRIPTION
This module is used to see what the dependancies a script or module ha
+s at
COMPILE time.
=cut
CHECK{
while (my($file,$location)=each(%INC)) {
print "$file => $location\n";
}
};
1;