http://www.perlmonks.org?node_id=156728

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

If I were to read the contents of a file into a scalar. Who's contents were:

Hello $cgi->param('name'), how are you today

And print out that scalar, the $cgi->param('name') would not be replaced with the actual value in my cgi object.

Is there a function that can be used on the scalar to process its contents, replacing all occurences of variables with their actual values, without having to use the replace function and pattern matching?