Syntactic Confectionery Delight | |
PerlMonks |
Re: line by line match on an array of stringsby balaji_red83 (Acolyte) |
on Jan 09, 2008 at 09:50 UTC ( [id://661295]=note: print w/replies, xml ) | Need Help?? |
Instead of reading line by line, you can slurp in the contents of the entire file into a scalar variable and then look for a match against an array of strings.
In Section
Seekers of Perl Wisdom
|
|