chas has asked for the wisdom of the Perl Monks concerning the following question:
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";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching strings with non-word characters
by Tanktalus (Canon) on Apr 17, 2006 at 13:19 UTC | |
by chas (Priest) on Apr 17, 2006 at 13:45 UTC |