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.
In reply to Re: Easy way to search files?
by adrianh
in thread Easy way to search files?
by matth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |