in reply to Splitting outside comments

It's usually a good idea to use Text::Balanced to strip comments before working on the real code.

Phil