mclow has asked for the wisdom of the Perl Monks concerning the following question:
where $my_template_string is, for example:$my_template_string = $configuration->{my_template_string}; $string = some_format_function($my_template_string, {var1=>"Guybrush", + var2=>"Purcell"});
Do you know such a sort of function or a similar way to approach this?"bar ${var1} foo foo ${var2} bar bar BAAAR!"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template strings
by Corion (Patriarch) on Jul 05, 2005 at 09:07 UTC | |
|
Re: Template strings
by chas (Priest) on Jul 05, 2005 at 11:36 UTC | |
|
Re: Template strings
by dirac (Beadle) on Jul 05, 2005 at 09:24 UTC | |
|
Re: Template strings
by trammell (Priest) on Jul 05, 2005 at 13:41 UTC | |
|
Re: Template strings
by davidrw (Prior) on Jul 05, 2005 at 12:43 UTC | |
|
Re: Template strings
by simonm (Vicar) on Jul 05, 2005 at 17:45 UTC |