The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The trinary is much like any other operator, for example ==. Lets try this example,
Here, you get the result of the == operator, is $a equal $b. If they match it returns true, if they don't match it returns false. The trinary works in a similar manner except you are setting the value returned instead of the implied value of other operators.
This does the same thing as the first example, except you are explicitly setting the value returned. Does this help? In reply to Re^3: Conditional Operator Confusion
by Herkum
|
|