note
c-era
You should used a module (like the template toolkit), but for something really simple (or for fun), you can use a regex:
<code>$input =~ s/(\$.*?) /eval ("\$tmp = $1;"); "$tmp "/e;
</code>
Note, this code is easy to break, you can't have any other $, and you need to be careful about line breaks.
67929
67929