return $var if my $var = thatroutine(); #### return my $var if $var = thatroutine();