develooper Front page | perl.perl5.porters | Postings from August 2008

Re: [PATCH] Precedence nit in Test::Builder

Thread Previous
From:
David Nicol
Date:
August 29, 2008 11:23
Subject:
Re: [PATCH] Precedence nit in Test::Builder
Message ID:
934f64a20808291123p6805d868xe560455d80f43916@mail.gmail.com
On Fri, Aug 29, 2008 at 12:05 PM, Vincent Pit <perl@profvince.com> wrote:

> $ perl -MO=Deparse,-p -e '!$x and $y, "foo"'
> ((not $x) and ($y, '???'));
>
$ perl -MO=Deparse,-p -e '!$x && $y, "foo"'
(((!$x) && $y), '???');


thanks.  I can be an idiot.

Thread Previous


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