sub foo { shift->{some_obj}->some_method && 1 || return } #### sub foo { shift->{some_obj}->some_method || return }