in reply to wishlist: static analysis of perl modules

The old replace-in-files standby
perl -pi -e 's/\$oldname\b/\$oldname/g' <files>
should take care of 99% of your variable replacement needs (or from vi,
:%!perl -pe 's/\$oldname\b/\$oldname/g'
should do the trick nicely).

czth