Matt Todd
8/1/2006 3:27:00 AM
As much as I'd like to take credit for knowing its superior speed, I
can't as I stole it from Aleks. :)
However, I did know that $1 wasn't a true global in the sense of the
term, but a magic variable specific to the regexp test. It's commonly
acceptable, and, hey, if it's faster, why not, right?
A side note: this is one of the first things I've worked with that I
decided to make into something that was includable.... It's a
milestone in my way of thinking and coding with Ruby! Yay! (Sorry, had
to tell someone!)
Cheers!
M.T.