This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is PERLIO=crlf recommended for Perl 5.8.0-3 and up?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]