in reply to split versus =~

You've already got plenty of answers here, but I recommend the thing you take away from this discussion is "I dunno -- let's write a test to check out all of the possible inputs and all of the corresponding outputs that we expect to see."

That way, when someone says, "I'm not sure it's working correctly" about your code, you can pull out your tests, and see whether you've covered that already.

There should always be tests.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.