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

[perl #122661] Documentation "The Ellipsis Statement" of perlsyn

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
September 13, 2014 14:35
Subject:
[perl #122661] Documentation "The Ellipsis Statement" of perlsyn
Message ID:
rt-4.0.18-31388-1410618908-905.122661-15-0@perl.org
On Sat Sep 13 06:46:05 2014, sprout wrote:
> On Sat Sep 13 06:07:36 2014, jkeenan wrote:
> > On Tue Sep 02 18:31:46 2014, perl.p5p@rjbs.manxome.org wrote:
> > > * ina cpan <perlbug-followup@perl.org> [2014-08-31T03:43:59]
> > > > -----------------------------------------------------------------
> > > > The Ellipsis Statement of http://perldoc.perl.org/perlsyn.html
> > > > said,
> > > >
> > > > You can use a ; inside your block to denote that the { ... } is a
> > > > block and not a hash reference constructor. Now the ellipsis works:
> > > >
> > > > 1. @transformed = map {; ... } @input; # ; disambiguates
> > > > 2.
> > > > 3. @transformed = map { ...; } @input; # ; disambiguates
> > >
> > > I am somewhat baffled, as I have never seen "put semicolon at the
> > > end"
> > > used for
> > > this purpose.  It didn't work in v5.12.5.  I think this is probably
> > > just a
> > > documentation error, plain and simple, yes?
> > 
> > In order to move this ticket toward resolution, I have prepared the
> > patch attached.  Please review.
> 
> Your patch is good.
> 

Thanks for the review.  Applied to blead in
commit 12d22d1fe17e8471834a01cd417792ac5c022d62

Marking ticket resolved.

-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=122661

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