my $x; ... $x = getValue() unless defined $x;