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

[perl #129345] perlmod doc bug wrt package scope

Thread Next
From:
James E Keenan via RT
Date:
November 19, 2016 00:34
Subject:
[perl #129345] perlmod doc bug wrt package scope
Message ID:
rt-4.0.24-6473-1479515655-1017.129345-15-0@perl.org
On Sun, 25 Sep 2016 01:22:39 GMT, davidnicol@gmail.com 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 (jkeenan@cpan.org)

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

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