in reply to chomp not working
print qq{@{ [ ord $_ ] } => $_\n} for split m{}, $buffer;
This will give you the ordinal value for each character and the character itself, one per line. You should be able to spot the line terminator from that. Then you could set $/ (see perlvar) to what you have found so that chomp will work.
I hope this is useful.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: chomp not working
by Fletch (Bishop) on Dec 07, 2007 at 00:13 UTC | |
by djbryson (Beadle) on Dec 07, 2007 at 15:10 UTC |