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...