http://www.perlmonks.org?node_id=857772


in reply to Re^2: Searching for Perl Modules in Files
in thread Searching for Perl Modules in Files

From the docs of Module::ScanDeps I'd try something like the following (untested):

# using your @files array as the starting point... my $dependencies = scan_deps( files => \@files, recurse => 1, );