This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
I haven't done much research in this realm, but in doing a quick Google search, it looks as if "perlcc" may do some of what you're after.
It's apparently considered experimental and may not work for all Perl source, but it may be worth a shot:
http://search.cpan.org/dist/perl/utils/perlcc.PL
Thank you, will explore perlcc and see if i can use it.