RE: Strange error from chomp

2003-02-18 Thread Oeschey, Lars \(I/EK-142, extern\)
> I think the problem is eof not chomp. In fact its not clear why redo > and eof are there at all. If all you want to do is remove trailing > newlines (or more precisely input record separators) then >while (chomp $config) {} > would have done. uh... I thought I have to loop somehow ;) Th

RE: Strange error from chomp

2003-02-18 Thread brianr
[EMAIL PROTECTED] writes: > Hi, > > I have the following routine to remove all "\n" characters from a strings > end before writing it to a file. within the routine I get the following > error when a "\n" is removed. Everything is working as expected, but the > error irritates me a bit. > T