P is for Practical | |
PerlMonks |
Re: Detect Two Strings in Fileby boftx (Deacon) |
on Nov 05, 2014 at 23:33 UTC ( [id://1106287]=note: print w/replies, xml ) | Need Help?? |
What about the case where $str1 is never found? The solutions so far presented seem to ignore that case and the results appear to be indistinguishable from first finding $str1 and then $str2.
You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
In Section
Seekers of Perl Wisdom
|
|