On Tue, 26 Jun 2001, Stéphane JEAN BAPTISTE wrote:

> What is chomp ?

It removes a trailing newline from a string:

chomp($line = <FILEH>);

This retrieves a line form an open filehandle and removes the trailing
newline (\n) from the end.  Actually, it chomps off whatever $/ is set to,
but it is usually used for \n.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
CONGRATULATIONS!  Now should I make thinly veiled comments about
DIGNITY, self-esteem and finding TRUE FUN in your RIGHT VENTRICLE??

Reply via email to