Re: A new golf "Subproduct" has started

[email protected] ("Riley") Mon, 22 Mar 2004 10:02:49 -0600
Newsgroups perl.golf
Organization Legalbill
Message-ID <[email protected]>
Hello All!

I was delighted to see for the first time a double regex evaluation used...
I've never seen this done, and I was curious as to how beneficial it was:

s!!$a=1;'($a*=$&*/./g)<$\or$\=$a.$/;'x"@ARGV"!eegfor shift;print

(Thanks, ton)

I've heard rumors of using even more regex evaluations for some purpose
or another, and I'm wondering if anyone can give me an example of when
you'd want to do something like:

s/{code}/{code}/eeeee

...and if you'd ever want to do the above, would it be possible also to do
something like:

s/{code}/'s!{code}!{code}!'.'e'x5/ee

or:

eval 's/{code}/{code}/'.'e'x5

Thanks
-Riley
(o0lit3)