in reply to Re^3: getting answer 70 years off
in thread getting answer 70 years off
Ah, if you write your regexes that way ( "qr{...}" ), then you wouldn't need to escape them, but when you use " /.../ " notation, they do have to be escaped, or else they end the regex. TMTOWTDI. Vim highlights both of these cases accurately in my limited testing.
$ perl -Mstrict -Mwarnings -e 'my $re = /[ /\\-]/' Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE / at -e line + 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: getting answer 70 years off
by kcott (Archbishop) on Jan 25, 2014 at 00:11 UTC |