develooper Front page | perl.perl5.porters | Postings from April 2010

Re: RFC: Perl manual pages -- update to follow the perlstyle.podguidelinesDate:Mon, 5 Apr 2010 11:36:15 +0000 (UTC)

Thread Previous | Thread Next
From:
Dr.Ruud
Date:
April 10, 2010 07:07
Subject:
Re: RFC: Perl manual pages -- update to follow the perlstyle.podguidelinesDate:Mon, 5 Apr 2010 11:36:15 +0000 (UTC)
Message ID:
20100410094153.5891.qmail@lists-nntp.develooper.com
(Raphael Manfredi) wrote:

> Personnally, I've always disliked "and" and "or" and never used them.
> I prefer to put parentheses to delimit the argument list visually, so the
> precedence never bites me.

    $y = doit($x) || die "oops";

would become

    ( $y = doit($x) ) || die "oops";

to fight the precedence.

Alternative:

    $y = doit($x) or die "oops";

-- 
Ruud

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