in reply to Re^4: Can you explain the result?
in thread Can you explain the result?

Consider:

sub some_function { return if $some_condition; .... }

Improve your skills with Modern Perl: the free book.