develooper Front page | perl.beginners | Postings from October 2009

Re: Ternary operator

Thread Previous | Thread Next
From:
Robert H
Date:
October 1, 2009 14:35
Subject:
Re: Ternary operator
Message ID:
20091001213500.25524.qmail@lists.develooper.com
On 9/11/09 12:37 AM, Uri Guttman wrote:
<snip>
> whenever you see an if/else where the code just assigns one or another
> value to the same variable that should be coded as a ternary op as this
> is what is it designed to do:
>

Awesome. That is a clear and concise reasoning that even my brain can 
handle.

Bob

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About