develooper Front page | perl.perl5.porters | Postings from May 2003

Re: [PATCH] perlsyn.pod Revamp (take 2)

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
May 12, 2003 15:55
Subject:
Re: [PATCH] perlsyn.pod Revamp (take 2)
Message ID:
20030513005241.D7E4.H.M.BRAND@hccnet.nl
On Tue 13 May 2003 00:14, Rafael Garcia-Suarez <rgarciasuarez@free.fr> wrote:
> You should read about the new toys, Casey...

I checked to see how well it was documented, and it is :)
when I saw this example:

    $home = $ENV{'HOME'} // $ENV{'LOGDIR'} //
        (getpwuid($<))[7] // die "You're homeless!\n";

If it is propagated that barewords are autoquoted in hash keys,
why not write it as

    $home = $ENV{HOME} // $ENV{LOGDIR} //
        (getpwuid ($<))[7] // die "You're homeless!\n";

Less line noise could make it easier to read. Just some thought
(from someone who cannot live without the defined-or operator)

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
  WinNT 4, Win2K pro & WinCE 2.11.  Smoking perl CORE: smokers@perl.org
http://archives.develooper.com/daily-build@perl.org/   perl-qa@perl.org
send smoke reports to: smokers-reports@perl.org, QA: http://qa.perl.org


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