return $some_condition ? $x : $y; #### if ($some_condition) { return $x; } return $y; #### return 1 if $self->_condition_1_is_true and $self->_condition_2_is_true and $self->_condition_3_is_true; # etc... return;
## if ($some_condition) { return $x; } return $y; ##
## return 1 if $self->_condition_1_is_true and $self->_condition_2_is_true and $self->_condition_3_is_true; # etc... return;