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

Re: Is updating "Ancient Perl" examples in documentation a good idea?

Thread Previous | Thread Next
From:
brian d foy
Date:
August 28, 2009 14:29
Subject:
Re: Is updating "Ancient Perl" examples in documentation a good idea?
Message ID:
280820091629467112%brian.d.foy@gmail.com
In article
<aeba50980908270831q17c8da1crcf073f71039c6f3f@mail.gmail.com>, Flavio
Poletti <polettix@gmail.com> wrote:

> For example, in perldiag I found the following example:
> 
>     open(OUT,">$ARGV[0]") or die "Can't write to $ARGV[0]: $!";

> I think that, were this example written today, it would be more like this:
> 
>     open my $out, '>', $ARGV[0] or die "Can't write to $ARGV[0]: $!";

I've been doing this for the perlfaq when I run across things. 

If we need a documentation  pumpking to pay attention to these sorts of
things, apply the doc patches, and so on so other people can work on
the other favorite parts, I herby volunteer :)

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