My problem was due to the missing escape of the $1 or the double eval, though the template idea sounds interesting. I never thought about using it without a template(-file).
Thank You all for the lesson.
And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)
In reply to Re^2: Variable substitute and capturing
by Brutha
in thread Variable substitute and capturing
by Brutha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |