This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make Deparse use CORE:: when necessary
authorFather Chrysostomos <sprout@cpan.org>
Fri, 20 May 2011 23:40:01 +0000 (16:40 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 20 May 2011 23:40:43 +0000 (16:40 -0700)
commit4a1ac32e8da9cb91194b4550164470631b836500
tree1e63a8ec07889b00c613170ffb52e4a3e42e1167
parentb3fdb838d589962e1c590dffd9540666e53c7e21
Make Deparse use CORE:: when necessary

Till now, Deparse has not added CORE:: to built-in keywords, even when
they are overridden by subs.  Now it does.

It was simply a matter of adding a ‘keyword’ sub that looks in the
current stash to determine whether there is a possible override.  And
it only does so for overridable non-infix functions.  It returns the
keyword with CORE:: added to the beginning if necessary.  Various
parts of the code have been modified to call this routine.
MANIFEST
dist/B-Deparse/Deparse.pm
dist/B-Deparse/t/core.t [new file with mode: 0644]