Brian wrote:
> 
> Anyway, there are a few ways you can do it.  First is to use the built
> in function chomp().  It removes new line chars from the end of a
> string.  The other way you could do it is with a regexp.  Something
> like:
> 
> $foo =~ s/\s$//;

you should use

s/\s+$//;

instead, since an end of line can be more than one character on some
operating systems.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to