Shaunn Johnson wrote:
>
> --at this point, i'm still trying to figure out
> --how to find NEL. the ASCII chart says the following:
>
> DEC HEX OCT EDTTPU CHAR DESCRIPTION
> 10 00A 012 L/F CTRL-J LFline feed
> 13 00D 015 C/R CTRL-M CRcarriage
Hmm. I presume you're using VMS? This is a platform-specific character set,
which is always a bit iffy in Perl. You could try setting the input record
separator to NEL by adding -0205 (those are both digit charater zeros) to
your command line. Your { chop; print; } two-liner will then work fine,
ex
--thanks for the reply:
--at this point, i'm still trying to figure out
--how to find NEL. the ASCII chart says the following:
[snip]
DEC HEX OCT EDTTPU CHAR DESCRIPTION
10 00A 012 L/F CTRL-J LFline feed
13 00D 015 C/R CTRL-M CRcarriage ret
I think we may need to see your Perl code Shaunn. I've never heard of a NEL
character but that may be my ignorance; do you mean newline? How do you know
the control characters aren't being removed by what you've done?
chomp() will remove the last character from a string if it is the input
record s
Howdy:
I have a text file that I'm trying to use, but, it has control characters
at the end.
[snip]
test.txt: ASCII text, with very long lines, with NEL line terminators
[/snip]
I've tried to use 'sed' and 'tr' to remove NEL and just have
an ASCII text. I've even used dos2unix, but that doesn