Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: super-simple regex-based template eval --- handling undefined substitutions

by iaw4 (Monk)
on Sep 15, 2012 at 22:40 UTC ( [id://993886]=note: print w/replies, xml ) Need Help??


in reply to Re: super-simple regex-based template eval --- handling undefined substitutions
in thread super-simple regex-based template eval --- handling undefined substitutions

yes, it does help. thanks. of course, it would be nicer if unknown $1 were to become 'unknown $ghi'. but it's a great one-liner, nonetheless.
  • Comment on Re^2: super-simple regex-based template eval --- handling undefined substitutions

Replies are listed 'Best First'.
Re^3: super-simple regex-based template eval --- handling undefined substitutions
by Kenosis (Priest) on Sep 15, 2012 at 22:50 UTC

    Using double quotes in the ternary operator will achieve this. Have updated the code to do this...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found