Although I would just write multiple statements:no warnings 'uninitialized'; if (!!(my $num = $recFono->field_as_text('102') + !!(my $type = $recFono->field_as_text('104')) { something(); }
my $num = $recFono->field_as_text('102'); my $type = $recFono->field_as_text('104'); if ($num || $type) { something(); }
In reply to Re: logical non-short-circuit operators
by JavaFan
in thread logical non-short-circuit operators
by december
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |