I was wondering (as Embperl embraces so very many hacks for the sake of
usefulness =) if it would be considered favorable to add a special case
for -] occurring inside of a regexp to be _not_ considered the end of
a embedded perl block.
(This may have come up before, I haven't been following
here's a suggestion - although I did not try it.
[! $expr="[^-]+"; !]
[- $testdata=~m!$expr!go; -]
I also didn't tried it, but it should work this way.
if not - probably can work around it by placing this code in
a separate module and calling it with embperl.
Would work also, but seems
used for purposes not intended to be Embperl...
Regards,
Christian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Gerald Richter
Sent: Tuesday, November 09, 1999 1:53 PM
To: Christian Gilmore; 'David Bushong'; [EMAIL PROTECTED]
Subject: RE: Embperl
embperl escape character?
okay I'm reaching here. something like
]] to indicate - ignore the next embperl character. so something ugly like
[- $testdata=~m![^]]-]+!; -]
could work. but you're right the \55 is much cleaner and easier to read.
cliff rayman
genwax.com
Gerald Richter wrote:
David Bushong [EMAIL PROTECTED] writes:
A few times in the past months (I've been playing with Embperl a
lot, it's a hell of a lot more fun than JSP, straight CGI, or
shudder HTML::Template),
I have been trying to resist asking this, but it's no use:
why shudder?
[ I'm a recent convert to