Is PERLIO=crlf recommended for Perl 5.8.0-3 and up?
Jason Pearce
jason.pearce@ieee.org
Wed Jan 21 17:27:00 GMT 2004
Gerrit P. Haase wrote:
>>I guess the alternative is to leave perl to access the files in binary
>>mode and then modify the perl scripts to detect and account for what
>>ever line ends it finds. Is that the recommended approach rather than
>>using PERLIO=crlf?
>>
>>
>
>To get the most out of PERLIO the script should take care about the
>platform it is running on and define one or more PERLIO layers during
>runtime. It may not always be correct to add CR to some output, e.g
>when processing binary files.
>
>
>Gerrit
>
>
So the correct technique for this approach is to read up on PERLIO
layers and use them to solve the problem (as opposed to "chomp" ing and
appending CRs in an adhoc manner!).
Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list