Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
In perl v5.22, using a literal { in a regular expression was deprecated, and will emit a warning if it isn't escaped: {. In v5.26, this won't just warn, it'll cause a syntax error. |
$ perl -e 'print "It matches\n" if "Hello World" =~ /World{abc}/' Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/World\{ <-- HERE abc}/ at -e line 1. $ perl -e 'print "It matches\n" if "Hello World" =~ /World\{abc}/'