What do you mean by 'works'? It looks to me like this will print the
line if the string 'pattern1 && pattern2 && pattern3' is in the
line. Not if pattern1 is in the line and pattern2 is in the line and
pattern3 is in the line. Is that what you mean?
I think some more detail would help me to understand your question.
print $line if ($line =~ /pattern1 && pattern2 && pattern3/);
works .. but
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>