in reply to regexp question

Have you looked at Text::Autoformat?

My tendency would be to use split, splitting on the word separator, but that's more a style preference than a substantive issue.

emc

At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.

—Igor Sikorsky, reported in AOPA Pilot magazine February 2003.