in reply to Re^2: Newlines: reading files that were created on other platforms
in thread Newlines: reading files that were created on other platforms
Hi, sorry for the terse answer!
Its the syntax for combining this
The :crlf bit just tells perl to look for varients of line-ending sequences & turn them all into "\n".
there is more info in the Cammel book.
Update
In the "open" documentation, Page 754 in the 3rd edition.
I should really do something about this apathy ... but i just cant be bothered
Its the syntax for combining this
open(FH, "<$file"); binmode(FH, ":crlf");
The :crlf bit just tells perl to look for varients of line-ending sequences & turn them all into "\n".
there is more info in the Cammel book.
Update
In the "open" documentation, Page 754 in the 3rd edition.
I should really do something about this apathy ... but i just cant be bothered
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Newlines: reading files that were created on other platforms
by bass_warrior (Beadle) on Feb 02, 2005 at 15:27 UTC | |
by monkey_boy (Priest) on Feb 02, 2005 at 15:37 UTC | |
Re^4: Newlines: reading files that were created on other platforms
by dana (Monk) on Apr 12, 2007 at 22:07 UTC |
In Section
Seekers of Perl Wisdom