On Thu, Oct 05, 2006 at 12:34:18PM -0400, Johnson, Reginald (GTI) wrote:
> To piggy back off of this question... Is there a way to just list out
> the modules you have installed?
This works for me:
#!/usr/bin/perl -l
use strict;
use warnings;
use File::Find 'find';
use File::Spec::Functions;
find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1
}, @INC;
(watch the line-wrap)
This recently came up in the PerlMonks chatterbox, too.
--
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
"The ability to quote is a serviceable
substitute for wit." - W. Somerset Maugham
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>