This will ensure $x has a numeric 0 in it even if some_func gives us an undefined value. I wonder if this impacts performance as much as a 'defined' test...?my $x = some_func() || 0;
In reply to Re: To warn or not to warn, that is the question
by Fastolfe
in thread To warn or not to warn, that is the question
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |