in reply to Unexpected qr// behavior
As you can see, the qr// specificly turns off all options for the regex that you don't specify, which is why adding the /s afterwards doesn't make any difference.[~]$ perl -le '$re = qr/<!--.*?-->/; print $re;' (?-xism:<!--.*?-->)
As for whether this is a good thing or not, I can see arguments either way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(2): Unexpected qr// behavior
by bart (Canon) on Apr 20, 2004 at 16:01 UTC |