in reply to Re: (ar0n) Re: I've never seen this syntax before
in thread I've never seen this syntax before

In Perl, the value of last evaluated statement is returned in a subroutine - the return token is optional, but you shouldn't abuse this (too much).

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
  • Comment on (jeffa) 2Re: (ar0n) Re: I've never seen this syntax before

Replies are listed 'Best First'.
Re: Re: Re: (ar0n) Re: I've never seen this syntax before
by merlyn (Sage) on Apr 04, 2001 at 23:34 UTC
    In Perl, the value of last evaluated statement is returned in a subroutine
    expression, not statement. You can't evaluate a statement.

    -- Randal L. Schwartz, Perl hacker