Robert Mathews wrote:
>
> "David L. Nicol" wrote:
> > it's not a new feature. It's amazing the subtle control you
> > can get with s/(\$...)/$1/ge depending on your ....
>
> You mean /gee, right? Hadn't thought of that. /ee makes my brain hurt.
I actually usually do things like
undef $/;
$template = `cat template`; #rude open
$template =~ s/\[(\w+)\]/$UserVariables{$1}/g;
to avoid the security concerns. /gee is correct for simple interpolation,
although how to match even curlies is a headache. Someone has proposed
a regex primitive to match a syntactically correct statement, for use in such
cases -- is it an RFC?
--
David Nicol 816.235.1187 [EMAIL PROTECTED]
"A taste so good that we stand behind every bottle and can."