Thanks.
String::Interpolate::RE looks like the most simple of those options. I have installed it, but it isn't working as I would expect, which is along the lines of:
Basically, with this module installed and available for my scripts to call upon the "strinterp" function mentioned on the cpan page:
$str = strinterp( $template );Where $template is the string I pulled from my database and $str becomes the new string with the variables ($me, $friend, etc) replaced by their current values in the script.
If so... great, that would be a tidy solution.
Unfortunately, this just gives the error:
"Undefined subroutine &main::strinterp called at C:\Users\rest of path\"
What should I do next? (Thanks in advance, any help is appreciated).
In reply to Re^2: printing a string from an sql field that contains a variable
by Anonymous Monk
in thread printing a string from an sql field that contains a variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |