This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Deparse with CORE:: to avoid lex sub conflicts
authorFather Chrysostomos <sprout@cpan.org>
Mon, 6 Oct 2014 05:32:23 +0000 (22:32 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 6 Oct 2014 05:32:23 +0000 (22:32 -0700)
commit3188a8216e19cb1020af7615e3178daab8a865d6
tree282f092bf04599870ad7fe7899d4e6dc213b7fa2
parentc837f29ae94c2404c0fbd82b1dbcc195a35a9183
Deparse with CORE:: to avoid lex sub conflicts

If a lexical sub with the same name as a keyword is in scope, we need
to deparse the keyword with a CORE:: prefix.

This commit handles most of the cases, but there are a few exceptional
cases remaining.
lib/B/Deparse-core.t
lib/B/Deparse.pm