Re: File::Find usage

2010-07-24 Thread John W. Krahn
Unknown User wrote: I have this script to find out where a perl module is on my machine: [unkn...@knowme:~/bin]$ cat findmodule #!/usr/bin/perl -w use File::Find; use strict; if ($ENV{INC} ) { # INC=PATH1:PATH2 ./getmodule perldoc perlrun [ SNIP ] PERL5LIBA list

File::Find usage

2010-07-23 Thread Unknown User
I have this script to find out where a perl module is on my machine: [unkn...@knowme:~/bin]$ cat findmodule #!/usr/bin/perl -w use File::Find; use strict; if ($ENV{INC} ) { # INC=PATH1:PATH2 ./getmodule module1 module2 module3 ... for my $toadd (split(/:/,$ENV{INC}))