in reply to Find Perl Modules Installed.

The autobundle command of the CPAN shell figures out how to write it, so perhaps you could steal some code from there.

-- Randal L. Schwartz, Perl hacker