in reply to Re^3: Count the sequence length of each entry in the file
in thread Count the sequence length of each entry in the file
If on windows also delete "\r" characters.
This is not necessary as the PerlIO :crlf layer is default on Windows and converts CRLF to LF on input. One can disable the translation with binmode or the :raw pseudolayer, but that's not the case in any of the code shown here. See also Newlines in perlport, and note that chomp also handles paragraph mode correctly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Count the sequence length of each entry in the file
by wazat (Monk) on Oct 03, 2020 at 20:25 UTC |