XP is just a number | |
PerlMonks |
Re: [OneLiner] What am I doing wrong in my regex?by Corion (Patriarch) |
on Jul 18, 2014 at 20:12 UTC ( [id://1094264]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|