> The differences between ruby18 and ruby19 are quite
> interesting though. Can somebody with deeper knowledge of
> ruby19 affirm that the
> "copy on write" strategy is still in use?

I think it's just that ?<...> is slower than $n.  Could you try
comparing my solution (the one based on yours) on both 1.8 and 1.9?

Thanks!

Paolo