Hi All,

One problem that often encounter is with line endings. I have to parse
several kinds of files routinely and often these are generated in excel and
therefore it is hard to anticipate which line ending I actually have. It
seems to me that during while loops, if the line ending is not a LF, the
line are not read properly. What often do is to open the file on gedit and
save as for unix.

What I was wondering is: is there any way to force perl to use other line
ending characters, like MacOS CR?

Thanks!

T.

-- 
"Education is not to be used to promote obscurantism." - Theodonius
Dobzhansky.

"Gracias a la vida que me ha dado tanto
Me ha dado el sonido y el abecedario
Con él, las palabras que pienso y declaro
Madre, amigo, hermano
Y luz alumbrando la ruta del alma del que estoy amando

Gracias a la vida que me ha dado tanto
Me ha dado la marcha de mis pies cansados
Con ellos anduve ciudades y charcos
Playas y desiertos, montañas y llanos
Y la casa tuya, tu calle y tu patio"

Violeta Parra - Gracias a la Vida

Tiago S. F. Hori. PhD.
Ocean Science Center-Memorial University of Newfoundland

Reply via email to