On Mon, 2004-05-03 at 10:58, Traeder, Philipp wrote:
> For the record:
> If you want to strip trailing newlines, use chomp.
> If you want to strip newlines anywhere else, use regexes.

And, if you want to strip trailing characters (no matter what they are;
let's say you know there's always a trailing \n and want to get rid of
it), use chop :-)

> Monday before noon, and weÂve thoroughly messed up the answer to a 
> completely clear question - thatÂs quite a good record, I'd say. ;-)

:-)

> Philipp

jac

-- 
Josà Alves de Castro <[EMAIL PROTECTED]>
Telbit - Tecnologias de InformaÃÃo


-- 
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