Most likely, shell quoting was tripping up your oneliners.
In most shells, double quotes interpolate variables. As you put your Perl oneliner in between double quotes, all the dollar signs were expanded to (empty) variables. You were unlucky in the sense that your program seems to have remained valid Perl even with all variables removed.
In reply to Re: [OneLiner] What am I doing wrong in my regex?
by Corion
in thread [OneLiner] What am I doing wrong in my regex?
by three18ti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |