is there a way to designate the line token delimiter in Perl's file reader?
Posted
by Dr.Dredel
on Stack Overflow
See other posts from Stack Overflow
or by Dr.Dredel
Published on 2010-04-05T21:20:07Z
Indexed on
2010/04/05
21:23 UTC
Read the original article
Hit count: 185
perl
I'm reading a text file via CGI in, in perl, and noticing that when the file is saved in mac's textEdit the line separator is recognized, but when I upload a CSV that is exported straight from excel, they are not. I'm guessing it's a \n vs. \r issue, but it got me thinking that I don't know how to specify what I would like the line terminator token to be, if I didn't want the one it's looking for by default.
© Stack Overflow or respective owner