Syntactic Confectionery Delight | |
PerlMonks |
Re: Better expression for $x = !!$y||0by reasonablekeith (Deacon) |
on Apr 19, 2005 at 08:53 UTC ( [id://449149]=note: print w/replies, xml ) | Need Help?? |
quote:
I rewrote this to: ... I'm sorry, but that's just awful. I'd never guess what you were actually trying to do here if I stumbled across this code, regardless of how correct it might be. In my opinion there's not much wrong with your first example, and although the conditional operator does add some brevity, the if else construct is almost certainly more readable to more people.
In Section
Seekers of Perl Wisdom
|
|