in reply to Easy way to search files?
Take a look at File::Find and File::Find::Rule. From the documentation of the latter:
use File::Find::Rule; + # find all the subdirectories of a given directory + my @subdirs = File::Find::Rule->directory->in( $directory ); + + # find all the .pm files in @INC + my @files = File::Find::Rule->file() + ->name( '*.pm' ) + ->in( @INC );
Once you have found the files you are interested, just open them and use m// (or whatever) to search for what you're interested in.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Easy way to search files?
by Juerd (Abbot) on Jan 06, 2003 at 13:12 UTC | |
by adrianh (Chancellor) on Jan 06, 2003 at 13:28 UTC | |
|
Re^2: Easy way to search files?
by Aristotle (Chancellor) on Jan 06, 2003 at 14:24 UTC | |
|
Re: Re: Easy way to search files?
by Hofmator (Curate) on Jan 06, 2003 at 13:38 UTC |