Syntactic Confectionery Delight | |
PerlMonks |
Re: Converting to booleanby hv (Prior) |
on Jun 17, 2004 at 14:19 UTC ( [id://367628]=note: print w/replies, xml ) | Need Help?? |
When I want clarity, or when I specifically want to avoid an undefined value, I tend to use the trinary operator:
When I want shortness I tend to use !!$x. When I'm comparing truthness of two expressions, I factor out one of the !s:
Hugo
In Section
Meditations
|
|