in reply to Re: Find Perl Modules Installed.
in thread Find Perl Modules Installed.
Uses File::Find, quite handy..
I know its lame to not remember the author.
Here:
#!/usr/bin/perl # list all of the perl modules installed use File::Find ; for (@INC) { find(\&modules,$_) ; } sub modules { if (-d && /^[a-z]/) { $File::Find::prune = 1 ; return } return unless /\.pm$/ ; my $fullPath = "$File::Find::dir/$_"; $fullPath =~ s!\.pm$!!; $fullPath =~ s#/(\w+)$#::$1# ; print "$fullPath \n"; }
|
|---|