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

Re: RFC: Perl manual pages -- Style issue: compounds and spacing inconditionals

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
April 10, 2010 04:28
Subject:
Re: RFC: Perl manual pages -- Style issue: compounds and spacing inconditionals
Message ID:
20100410132808.6cfe3c4a@pc09.procura.nl
On Sat, 10 Apr 2010 13:14:22 +0300, Jari Aalto <jari.aalto@cante.net>
wrote:

> 
> Examples from POD
> 
>     while (<>)
>     while ( <> )
> 
>     while (/(\w+)\s+fish\b/gi) {
>         ...
>     }
> 
>     if (/=item (\S+)/ and $level == 1) {
>         ...
>     }
> 
>     if ($person->{role} =~ /kid|son|daughter/) {
>         ...
>     }
> 
>     if ($email =~ /([^@]+)@(.+)/) {
>         ...
>     }
> 
>     while (my($key,$val) = each %HIST) {
>         ...
>     }
> 
> What do you think about making a little more room inside parens:
> 
>     while ( <> )

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!


-- 
H.Merijn Brand  http://tux.nl      Perl Monger  http://amsterdam.pm.org/
using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00,
11.11, 11.23, and 11.31, OpenSuSE 10.3, 11.0, and 11.1, AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

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