I had a case where I was doing this:<div><br></div><div> if ($x." ".$y =~ /something/) {</div><div> do_foo;</div><div> }</div><div><br></div><div>This was always evaluating to true - due to $x being true. ie: the regex-match only ever applied to $y.</div>
<div><br></div><div><br></div><div>Looking up perlop, I was a little surprised to find that this regex test-operator has higher precedence that other combining-operators. ie: compare with:</div><div><br></div><div> $x + $y <= $z</div>
<div><br></div><div><br></div><div>Just something to watch out for.</div><div><br></div><div>cheers,</div><div>Mathew Robertson </div>