Hacker News new | ask | show | jobs
by flogic 3400 days ago
Not really the same thing. The Perl version is generally used as an early abort either from a subroutine or a loop.

    return if($number > 2);
Is equivalent to:

    if($number > 2){
        return;
    }
1 comments

I didn't know that. Thanks for explaining it.