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

Re: RFC: Perl manual pages -- update to follow the perlstyle.podguidelines

Thread Previous | Thread Next
From:
Peter Scott
Date:
April 5, 2010 06:49
Subject:
Re: RFC: Perl manual pages -- update to follow the perlstyle.podguidelines
Message ID:
20100405134855.15655.qmail@lists-nntp.develooper.com
On Sat, 03 Apr 2010 16:54:06 -0600, Tom Christiansen wrote:
> My mind super really
> wants the () and the || to break things up for quick visual parsing. It
> takes me much, much longer to read
> 
>     close FH or die "can't close $path: $!";
> 
> than it takes me to read:
> 
>     close(FH) || die "can't close $path: $!";

I cannot help but notice that you never write this as

	close(FH) || die("can't close $path: $!");

and wonder whether that exception makes your style more complicated to 
explain.

-- 
Peter Scott
http://www.perlmedic.com/     http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
http://www.oreillyschool.com/courses/perl1/

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