This is very useful. I ran it on a bunch of my scripts, and the results look great.
in reply to exports -- which module exports are used?
One of my scripts uses XML::Tidy, and gave me an unexpected result:
# use XML::Tidy(); # Not used?
So, I did some more poking at it:
$ perl -MXML::Tidy -le 'print $XML::Tidy::VERSION'
$ exports XML::Tidy
Invalid version format (non-numeric data) at exports line ...
It points to the my $version = $mod->VERSION(); line. I'm not sure if there is anything that can be done about modules that use icky versions.