If you are going to manipulate a text, then my choice would be parse line by line instead of paragraph.
In reply to Re: Big paregraphs in Perl by irah in thread Big paregraphs in Perl by uajith