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

Re: [perl #115158] a2p wrongly considers string literal "0" is always false

Thread Previous | Thread Next
From:
Ralph Corderoy
Date:
September 4, 2013 16:44
Subject:
Re: [perl #115158] a2p wrongly considers string literal "0" is always false
Message ID:
20130831112433.BFE3F23F73@orac.inputplus.co.uk
> a2p isn't meant to be an implementation of awk, but an approximate
> translator.  It deliberately compromises on awk semantics in order to
> produce idiomatic Perl.  So this problem, arising from a low-level
> difference in language semantics, is unfortunate but not a bug.

In that case, a2p(1) should document this subtlety just as it does so
with the many other issues in its conversion of awk to perl.

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