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>