That's easily fixed:C:\>perl -le "$_ =~ /sub mymy{ }/;" Unescaped left brace in regex is deprecated, passed through in regex; +marked by <-- HERE in m/sub mymy{ <-- HERE }/ at -e line 1. C:\>
But why not also (or instead) deprecate the unescaping of the *right* brace ?C:\>perl -le "$_ =~ /sub mymy\{ }/;" C:\>
In reply to No need to escape right brace in regex by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |