This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Semicolon before ellipsis inside block disambiguates.
authorJames E Keenan <jkeenan@cpan.org>
Sat, 13 Sep 2014 12:51:48 +0000 (08:51 -0400)
committerJames E Keenan <jkeenan@cpan.org>
Sat, 13 Sep 2014 14:29:03 +0000 (10:29 -0400)
commit12d22d1fe17e8471834a01cd417792ac5c022d62
treea98c050fcf2a49e50827f89139dc1a849da3c46f
parentecd53122b3f30475da92b2d8c5c741e1d28cc863
Semicolon before ellipsis inside block disambiguates.

Correct documentation which indicated that, inside a block, a semicolon after
an ellipsis statement would disambiguate between a block and a hash reference
constructor.  The semicolon must precede the ellipsis to perform this
disambiguation.

Add tests to demonstrate that whitespace around the ellipsis statement does
not impeded the disambiguation.  Add perldelta entry.

For: RT #122661
pod/perldelta.pod
pod/perlsyn.pod
t/op/yadayada.t