P is for Practical | |
PerlMonks |
Re^2: grep for lines containg two variablesby Roy Johnson (Monsignor) |
on Dec 07, 2005 at 19:02 UTC ( [id://514981]=note: print w/replies, xml ) | Need Help?? |
Because it's done with lookaheads, the last example works with strings in either order. That is, in fact, why it is done with lookaheads. In my mind, lookaheads like this are the "and" that complements alternation's "or" in regexen.
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|