Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: Re: variable set to 0 ? 0 : 1by jdporter (Paladin) |
on Nov 05, 2002 at 15:39 UTC ( [id://210481]=note: print w/replies, xml ) | Need Help?? |
I agree with sauoq.
But here's how I usually write the ternary operator when clarity is a goal: Yes, it seems unnecessarily expansive for this simple case... but I probably wouldn't do it for this simple case. I would, and do, do this for situations such as: Predicate and two lemmas, each on its own line.
In Section
Seekers of Perl Wisdom
|
|