Thomas Hurst wrote:
>> $ ruby -0 -ne 'print "A"*3,"\n"*10000,"B"*10,"\n"*10000' > str
> Um, this hangs on my machine.  Fine when I execute it from a file
> though.

sorry, the code was obviously miscopy-pasted. it should have been 'ruby 
-e', not 'ruby -ne'.

> Interesting that perl 5.005 is actually faster than 5.6.1 on these
> matches.  I'd also imagine you're using 5.8 given how quick your version
> of perl performed the second match.

based on my experience, perl 5.8.0 is generally [pretty significantly] 
slower than 5.6 at handling text, say like 10-40% slower. probably 
because the unicode handling stuff. unfortunately i don't have access to 
a machine with 5.6.x right now. every single of them has been upgraded 
to 5.8.0.

-- 
dave