I changed the double-quotes to single-quotes and got a reasonable result. Which to me suggests that the shell does some processing with double-quoted strings before it reaches perl
Whatever shell you are using, try this:
> echo 'hello $1' hello $1 > echo "hello $1" hello
In reply to Re: Choosing regex delimiters
by jethro
in thread Choosing regex delimiters
by xyzzy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |