produces "OK1" only. I would expect the first match to fail and the second to succeed. Thanks for any comments!$_="X "; if(m'X\ '){print "OK1\n";} $_='X\ '; if(m'X\ '){print "OK2\n";}
In reply to Matching strings with non-word characters by chas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |