in reply to parsing a load of perl scripts
The B::Xref module does generate some useful information on subroutine and variable usage. You may even be able to parse its output looking for intersections between scripts.
Dave