my $bar = expensive(); ($i1, $i2) = $bar if defined $bar;