in reply to chomp() problems
Not quite sure why chomp isn't working, but your tr// isn't very wise as you are replacing the \r\n with 2 null (ascii 0) bytes which could bite (chomp:) back later.
I think tr/\r\n//; would probably be better.
If you posted the relevant bit of your code, it might be easier to see why chomp isn't doing what you expect.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: chomp() problems
by mojobozo (Monk) on Sep 24, 2002 at 17:40 UTC | |
by disciple (Pilgrim) on Sep 24, 2002 at 20:16 UTC |