Don't ask to ask, just ask | |
PerlMonks |
Re: Opening file and checking for databy msemtd (Scribe) |
on Jul 04, 2003 at 13:20 UTC ( [id://271467]=note: print w/replies, xml ) | Need Help?? |
I'm surprised that nobody yet mentioned not using Perl at all! What you want to do is possible with Gnu grep from the command line...
Of course, this may not meet your requirements - notably, this returns a count of the lines matched per file rather than pattern matches per file. YMMV
In Section
Seekers of Perl Wisdom
|
|