my $val = $hash{foo}; return $val if exists $val;