in reply to ternary operator ?

For a less esoteric example:

$apples=3; $oranges=1; print "I have $apples ", $apples==1?"apple":"apples", "\n"; print "I have $oranges orange", $oranges==1?"":"s", "\n"; __END__ I have 3 apples I have 1 orange

--
Tommy
Too stupid to live.
Too stubborn to die.

Replies are listed 'Best First'.
Re: Re: ternary operator ?
by sulfericacid (Deacon) on Nov 29, 2002 at 11:19 UTC
    Out of all the examples here, your's was definately the most understandable :) Thanks for trying to keep it basic and using something which would be a pretty practical use of it! I think I understand it more, thanks for your help!!

    sulfericacid