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.
In reply to Re^4: getting answer 70 years off
by derekstucki
in thread getting answer 70 years off
by derekstucki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |