in reply to eval using hash values
I think Text::Template will do exactly what you want. If that's not what you want, please clarify.$text = 'my $foo has gone completely $bar'; %hash = (foo => 'dog', bar => 'crazy'); $final_text = unknown_method($text); #$final_text is now 'my dog has gone completely crazy'
|
---|