http://www.perlmonks.org?node_id=145337


in reply to splitting on win32 linefeeds aka pass the crackpipe!

Better split this way, so you can split also files saved in Unix format
# try splitting on ^M (windoze newlines) my @contentarray = split /\r?\n/, $content_to_parse;

Have a nice day
All decision is left to your taste