Essentially, if your log file contained the following:
This is driving me nuts
Its time for coffee
Time to start drinking heavily
. . . and you wanted your script to find one or more "patterns"
then your
print OUT if (/Its time fore coffee/ | /Time to start drinking heavily/);
would need to be included. The "/" are what does the trick along with a decent text editor that will turn different colors when you get things right or wrong.
| [reply] |