in reply to Re: Re: A quit key when no chomp
in thread A quit key when no chomp

A thing to keep in mind is what chomp really does. chomp is a safe chop. I don't want to give it away, but reconsider whether or not it matters if you chomp the input when you know what character will be removed.

Cheers,
Erik

Replies are listed 'Best First'.
Re: Re: Re: Re: A quit key when no chomp
by ellem (Hermit) on Mar 03, 2002 at 08:03 UTC
    I thought chomp takes "\n"

    And since I want output that resembles:
    One
    Two
    Red
    347

    I thought that leaving the input (un)chomp(ed) would be a good thing.
    --
    ellem@optonline.net
    There's more than one way to do it, just don't use my way.