in reply to Re: No need to escape right brace in regex
in thread No need to escape right brace in regex
The actual error messages can vary a bit, depending upon what gets run when - but I've seen the same error as you reported.sisyphus@sisyphus5-desktop:~$ echo $_ PATH $ perl -le "$_=~/sub mymy\{}/;" # No error here $ echo $_ PATH=~/sub mymy\{}/; $ perl -le "$_=~/sub mymy\{}/;" Backslash found where operator expected at -e line 1, near "mymy\" syntax error at -e line 1, near "mymy\" Execution of -e aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: No need to escape right brace in regex
by WHUK (Initiate) on Oct 21, 2014 at 11:28 UTC |