There's more than one way to do things | |
PerlMonks |
Re^5: Prepocessing perl code / substing variablesby haukex (Archbishop) |
on Apr 15, 2019 at 21:00 UTC ( [id://1232612]=note: print w/replies, xml ) | Need Help?? |
'cause everybody thinks s/%%(\w+)%%/$vars{$1}/g is enough Yes, I suspect that is the case... But I would at least expect missing values reporting warnings about uninitialized variables could cover that, I think. May be some functionality with quotes escaping or something for better values substitution... Here's where one starts entering the area of reinventing the Template wheel :-)
In Section
Seekers of Perl Wisdom
|
|