http://qs321.pair.com?node_id=935498


in reply to logical non-short-circuit operators

Assuming that field_as_text doesn't return objects with weird overloaded bool logic:
no warnings 'uninitialized'; if (!!(my $num = $recFono->field_as_text('102') + !!(my $type = $recFono->field_as_text('104')) { something(); }
Although I would just write multiple statements:
my $num = $recFono->field_as_text('102'); my $type = $recFono->field_as_text('104'); if ($num || $type) { something(); }