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."
- Re: RFC 229 (v2) Variable interpolation on demand. John L. Allen
- goof - RFC 328 (v1) Single quotes don't interpolate \... nick
- Re: RFC 229 (v2) Variable interpolation on demand. Robert Mathews
- Re: RFC 229 (v2) Variable interpolation on demand... John L. Allen
- Re: RFC 229 (v2) Variable interpolation on demand. Glenn Linderman
- Re: RFC 229 (v2) Variable interpolation on demand. David L. Nicol
- Re: RFC 229 (v2) Variable interpolation on demand... Robert Mathews
- Re: RFC 229 (v2) Variable interpolation on de... David L. Nicol
- Re: RFC 229 (v2) Variable interpolation on demand... Glenn Linderman
- Re: RFC 229 (v2) Variable interpolation on demand... Bart Lateur
