syphilis has asked for the wisdom of the Perl Monks concerning the following question:
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:\>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: No need to escape right brace in regex
by Athanasius (Archbishop) on Oct 21, 2014 at 04:40 UTC | |
by no_slogan (Deacon) on Oct 21, 2014 at 06:57 UTC | |
by syphilis (Archbishop) on Oct 21, 2014 at 08:14 UTC | |
by LanX (Saint) on Oct 21, 2014 at 09:28 UTC | |
by LanX (Saint) on Oct 21, 2014 at 10:18 UTC | |
by syphilis (Archbishop) on Oct 21, 2014 at 10:34 UTC | |
by LanX (Saint) on Oct 21, 2014 at 10:58 UTC | |
|
Re: No need to escape right brace in regex
by biohisham (Priest) on Oct 21, 2014 at 09:30 UTC | |
by syphilis (Archbishop) on Oct 21, 2014 at 10:21 UTC | |
by WHUK (Initiate) on Oct 21, 2014 at 11:28 UTC |