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

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

Thread Previous
From:
ina cpan
Date:
September 3, 2014 09:34
Subject:
Re: [perl #122661] Documentation "The Ellipsis Statement" of perlsyn
Message ID:
CAFk0FKdkVqeRFRcr7wxfFt5bivoNzjPiukm2z5wMVZp7Z7abKg@mail.gmail.com
I think so too.


2014-09-03 10:31 GMT+09:00 Ricardo Signes via RT <perlbug-followup@perl.org>
:

> * 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?
>
> --
> rjbs
>
>

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About