Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Parse user-entered expressions into subs for an awk-like program

by ysth (Canon)
on Jan 28, 2007 at 22:38 UTC ( [id://596995]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Parse user-entered expressions into subs for an awk-like program
in thread Parse user-entered expressions into subs for an awk-like program

You may want to change \w+ to [a-z]+ or similar so that "a+1" doesn't become "$set->{a}+$set->{1}".
  • Comment on Re^3: Parse user-entered expressions into subs for an awk-like program
  • Download Code

Replies are listed 'Best First'.
Re^4: Parse user-entered expressions into subs for an awk-like program
by GrandFather (Saint) on Jan 28, 2007 at 22:52 UTC

    or even [a-z_]\w* to be consistent with most identifier schemes.


    DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-24 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found