This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
deparse ::CORE::foo barewords carefully
authorZefram <zefram@fysh.org>
Thu, 16 Nov 2017 07:04:32 +0000 (07:04 +0000)
committerZefram <zefram@fysh.org>
Thu, 16 Nov 2017 07:04:32 +0000 (07:04 +0000)
commite923f3dcea8f38db48b7b02079de0d1177b08d83
tree3ff57b9c00c7402187fd99e6cee7b3086c55551a
parent843835bcbbb548f6263269c55e166f35c68099d1
deparse ::CORE::foo barewords carefully

A bareword such as "::CORE::foo", where it refers to a GV, is liable to be
confused with the "CORE::foo" syntax, which can't refer to a GV but is a
way of supplying a keyword, and is illegal if the keyword doesn't exist.
Make sure to deparse it with the "::" prefix.  Fixes [perl #113714].
lib/B/Deparse.pm
lib/B/Deparse.t