Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warnings about unescaped { on perl 5.17.6+
Unforunately, when you have ```perl $x =~ s{ \{ }{ bar } ``` All that the \ escapes is "is this a regexp token", ie: is no different to its behaviour inside ```perl $x =~ s[ \{ ][ bar ] ``` And upstream changes mean you now have to escape the delimiting as well now, so I think ```perl $x =~ s{ \\{ }{ } ``` Is the "right" way to do it. Though, I'm not entirely sure about that either. Either way, its easier to chose a non-conflicting delimiter token ```perl $x =~ s[ \{ ][ ] ``` and that should do what you want.
- Loading branch information
1 parent
8eece28
commit bac12ca
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters