note
ikegami
<p>Why? Does <c>field_as_text</c> have a side effect? If so, it's poorly named.
<p>If the assignments are the side effects you want to perform unconditionally, then move them out of the condition.
<c>
my $num = $recFono->field_as_text('102');
my $type = $recFono->field_as_text('104');
if ($num || $type) {
...
if ($type) {
...
}
...
}
</c>
<p>If it's a scoping issue, create a scope.
<c>
{
my $num = $recFono->field_as_text('102');
my $type = $recFono->field_as_text('104');
if ($num || $type) {
...
if ($type) {
...
}
...
}
}
</c>
935464
935464