|XP is just a number|
grep for lines containg two variablesby smoss74 (Acolyte)
|on Dec 07, 2005 at 16:26 UTC||Need Help??|
smoss74 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, I'm trying without success to grep for two variables in a string.
I know the syntax for "or"
@interesting_lines = grep (/$string1|$string2/, @log);
but not "and" i.e. match on a line containg $string1 and $string2.
Could someone please help!