Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to determine type of line endings in a text file from within a script

by Anonymous Monk
on Mar 01, 2015 at 22:00 UTC ( [id://1118321]=note: print w/replies, xml ) Need Help??


in reply to How to determine type of line endings in a text file from within a script

line endings, line endings newline, newline ->
PerlIO::eol - PerlIO layer for normalizing line endings
eol - Simple script to convert newline endings; uses the EOL.pm module.
EOL - This module aids in the conversion of text file newline characters within the context of other perl code; includes command line executable.
Test::EOL - Check the correct line endings in your project
PerlIO::unicodeeol - PerlIO layer for normalizing line endings from \R to \n
Encode::Newlines - Normalize line ending sequences
File::LocalizeNewlines - Localize the newlines for one or more files
  • Comment on Re: How to determine type of line endings in a text file from within a script

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1118321]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-06-14 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.