On Fri, Nov 4, 2011 at 1:15 PM, <andy_b...@wiwb.uscourts.gov> wrote:

> Perl should handle the \r\n part for you  - "\n" is normally a match for
> whatever your OS's end of line marker is.
>

But just in case you're on *nix and processing a Windo~1 file, split(
/[\r\n]+/, $msg ) is reasonably bullet-proof for breaking a string at
line-break. Note that it will treat multiple blank lines as a single
line-break.

-- 
"The very nucleus of Character: to do what you know you should do, when you
don't want to do it." Stephen Covey
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to