[Jax.PM] Wake up =)
Jason Proctor
jproctor at persons.marlboro.edu
Sun Aug 31 15:04:19 CDT 2003
> Man ... this list is way too quiet :/
WE CAN SHOUT ALL OUR POSTS IF YOU WANT...
> Here is something small to wake you up =)
>
> What is wrong with this code?
>
> s{ <!(.*?)(--.*?--\s*)+(.*?)> }{ if ($1 || $3) "<!$1 $3>"; } }gesx;
It's missing a "{". And given a need for {}s in the substituted string,
they probably weren't the best choice for s///'s delimiters.
Other than that, nothing obvious. It might not do what you want it to,
but you haven't told us what that is yet. :)
> BONUS:
> Where did I steal it from?
Did I write it? No. I hardly ever use /e, and I don't use /x as often as
I ought.
Dunno.
j
More information about the Jacksonville-pm
mailing list