On Dec 17, 2003, at 10:09 AM, Hemond, Steve wrote:

Actually, I have to test two conditions to get into a block,

If the strings found are either "one two" or "two three", go ahead.

if ($text =~ /one two/ or /two three/)

Now that is a mistake. ;)


if ($text =~ /\bone two\b/ || $text =~ /\btwo three\b/) {

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to