in reply to Re^2: Why is this string only PARTIALLY interpolated?
in thread Why is this string only PARTIALLY interpolated?

You're processing the template in Perl, not MySQL. Template-Toolkit is my go-to template system. The template would look like

[% cat.dog %]/mouse
instead of
$cat->{dog}/mouse

Replies are listed 'Best First'.
Re^4: Why is this string only PARTIALLY interpolated?
by misterperl (Friar) on Aug 09, 2023 at 13:48 UTC
    interesting TY, studying this solution. I've never heard of this before (after LAMP programming since 1996!) or heard it ever mentioned in any of myriad OSCONs I've attended. A nice surprise!

      Template toolkitz is also extendable, e.g. you can write your own plugins. Most of my websites support* multi-language, i just enclose any text to be translated in [% tr.trquote("Hello World") %]

      * = in theory. The webserver supports it. My own laziness guarantees that at least my private websites don't have proper translations available.

      PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP