|
|
| P is for Practical | |
| PerlMonks |
Re^2: ternary operatorby frozenwithjoy (Chaplain) |
| on Jan 18, 2013 at 08:55 UTC ( #1013988=note: print w/ replies, xml ) | Need Help?? |
|
Besides checking whether $a1 and $b1 are defined, you'd probably also want to verify that the the smaller value is != 0. By now, we are definitely at the point where insisting on using the ternary operator causes needless issues with readability.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||