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

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

Thread Previous | Thread Next
From:
Abigail
Date:
September 29, 2011 16:25
Subject:
Re: [perl #100364] exit doesn't match its documentation
Message ID:
20110929232508.GA30238@almanda
On Thu, Sep 29, 2011 at 03:40:14PM -0400, David Golden wrote:
> On Thu, Sep 29, 2011 at 9:38 AM, Nicholas Clark
> <perlbug-followup@perl.org> wrote:
> > I'm not sure what 'EXPR' should be replaced with, in the documentation.
> 
> While "perldoc -f XXXX" doesn't show it, a full "perldoc perlfunc" has
> a lengthy opening section that discusses the issues.
> 
> Unfortunately, like much of Perl documentation, it's far to verbose
> while still being incomplete. For example, it defines the term "LIST"
> but doesn't define any of the other terms except to imply that they
> are not in list context.
> 
> Possibly, EXPR should be replaced throughout with terms that are
> descriptive of use.  E.g. "exit VALUE".  This would be consistent with
> the use of "FILEHANDLE", "DIRHANDLE", "VARIABLE", "REF", "BLOCK", etc.


I dunno.

Is '1 == 0' a value? If so, it doesn't solve the ambiguity of 'exit 1 == 0'.
But if '1 == 0' isn't a value, it doesn't explain why 'exit(1 == 0)' is valid.



Abigail

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