in reply to Re: conditional print. Is correct to use it?
in thread conditional print. Is correct to use it?
... a FALSE value can be "non empty", so || is probably not the best choice.
I don't understand this statement. (Update: hippo has likely shown the
way to understanding. :) Is there any false value of
$x, empty or not, for which the expression ($x || $y)
would not evaluate as the value of $y? Likewise, given the
statement
$x ||= $y;
is there any false initial value of $x for which the final
value of $x would not end up as $y?
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: conditional print. Is correct to use it?
by hippo (Archbishop) on Oct 28, 2020 at 21:19 UTC | |
|
Re^3: conditional print. Is correct to use it?
by kcott (Archbishop) on Oct 29, 2020 at 03:50 UTC |