develooper Front page | perl.perl5.porters | Postings from October 2014

Re: [perl #122938] [PATCH] 1. Remove trailing space in perlipc.pod. 2. Modernise one of the examples

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
October 15, 2014 14:12
Subject:
Re: [perl #122938] [PATCH] 1. Remove trailing space in perlipc.pod. 2. Modernise one of the examples
Message ID:
20141015161150.1d57e2cb@pc09.procura.nl
On 15 Oct 2014 13:59:04 -0000, Father Chrysostomos <sprout@cpan.org>
wrote:

> H.Merijn Brand:
> > Hey, "say" was added in 5.10, why not use it in examples?
> 
> Because then you have to add 'use v5.10' as well, which may be more
> distracting than helpful.  But it all depends on the context.

Personally I think that only the first example in a .pod should - if at
all - state the use strict/use warnings combo. All other code snippets
and examples can clearly do without.

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.19   porting perl5 on HP-UX, AIX, and openSUSE
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