$_ ? return $_ : undef for thatroutine(); #or simply return $_ if $_ for thatroutine();