develooper Front page | perl.perl5.porters | Postings from November 2016

[perl #129345] perlmod doc bug wrt package scope

Thread Next
James E Keenan via RT
November 19, 2016 00:34
[perl #129345] perlmod doc bug wrt package scope
Message ID:
On Sun, 25 Sep 2016 01:22:39 GMT, wrote:
> thanks for this explanation! I too thought package replaced rather
> than nested, and I was surprised to see this output:
> $ perl -le 'package a; { print __PACKAGE__; package b;  print
> __PACKAGE__; } print __PACKAGE__;'
> a
> b
> a
> I was expecting a, b, b. Was it initially broken, like in perl 5.0.0?
> Anyway, some kind of improvement to the documentation of this makes
> sense as it currently can be misinterpreted.
> dln

In order to move this ticket toward resolution, I am proposing the attached patch to pod/perlmod.pod.  Please review.  I'll apply to blead within 7 days if there are no objections.

Thank you very much.

James E Keenan (

via perlbug:  queue: perl5 status: open

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About