in reply to Re^3: Prepocessing perl code / substing variables
in thread Prepocessing perl code / substing variables
Yes, this is actually a question about how to do s/%%(\w+)%%/$vars{$1}/g in a right way.
May be my mind is not perl enough, but I consider s/%%(\w+)%%/$vars{$1}/g a hack, and would prefer a module that does s/%%(\w+)%%/$vars{$1}/g.
May be it is a reason, why there is no such module... 'cause everybody thinks s/%%(\w+)%%/$vars{$1}/g is enough. But I would at least expect missing values reporting... May be some functionality with quotes escaping or something for better values substitution...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Prepocessing perl code / substing variables
by haukex (Archbishop) on Apr 15, 2019 at 21:00 UTC | |
Re^5: Prepocessing perl code / substing variables
by RonW (Parson) on Apr 15, 2019 at 23:23 UTC | |
by nataraj (Sexton) on Apr 17, 2019 at 20:08 UTC | |
by haukex (Archbishop) on Apr 17, 2019 at 21:17 UTC | |
Re^5: Prepocessing perl code / substing variables
by roboticus (Chancellor) on Apr 15, 2019 at 21:04 UTC |