http://qs321.pair.com?node_id=168121


in reply to Re: remove blank lines with regex
in thread remove blank lines with regex

Thanks, good advice. I got the "slurping files into an array" snippet from something in the Q&A on regex, but I will avoid it henceforth!