We don't bite newbies here... much | |
PerlMonks |
Re^3: Matching multiple patterns with regexby Corion (Patriarch) |
on Oct 30, 2015 at 13:50 UTC ( [id://1146491]=note: print w/replies, xml ) | Need Help?? |
Can you formulate in English when you want to print a line? The && operator stands for the logical AND, which is true when both its left side and its right side are true. In your case, the current logic means that the line must contain both at the same time, the string Subject: and string From:. You most likely want something else, and describing it in English is usually beneficial to then translating from precise English to Perl code.
In Section
Seekers of Perl Wisdom
|
|