develooper Front page | perl.perl5.porters | Postings from September 2011

Re: [perl #100364] exit doesn't match its documentation

Thread Previous | Thread Next
From:
Zefram
Date:
September 29, 2011 08:12
Subject:
Re: [perl #100364] exit doesn't match its documentation
Message ID:
20110929151230.GD12382@lake.fysh.org
Tom Christiansen wrote:
>    % perl -le 'sub trick { return (3+5)*8 } print trick()'
>    64
>
>It is parsed completely differently!!

Because it's a list function, because you can return a list.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About