On Mon, 2003-07-28 at 08:34, Dave O'Neill wrote:

> Nope, chomp() will only delete a single trailing \n.
>
> For those who like to count rivets, what it really does is removes a
> trailing string exactly matching the current value of the input record
> separator as defined by the $/ variable -- which is set to "\n" unless
> you've changed it yourself.  Other trailing whitespace won't be removed by
> chomp.


But Perl's chop() will remove trailing anything.

Reply via email to