On May 3, 2004, at 4:58 AM, Traeder, Philipp wrote:

You're right - I didn't read the original question closely enough.

For the record:
If you want to strip trailing newlines, use chomp.
If you want to strip newlines anywhere else, use regexes.

Or


tr/\n//d;

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to