Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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??


in reply to [OneLiner] What am I doing wrong in my regex?

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.

  • Comment on Re: [OneLiner] What am I doing wrong in my regex?

Replies are listed 'Best First'.
Re^2: [OneLiner] What am I doing wrong in my regex?
by perlfan (Vicar) on Jul 18, 2014 at 20:17 UTC
    > You were unlucky in the sense that your program seems to have remained valid Perl even with all variables removed.

    Classic.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1094264]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-16 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found