This patch allows the following to deparse properly:
perl -MO=Deparse -e 'CORE::require "CGI.pm"'
(necessary due to the specific way require() is overriden)
my $kid;
if ($op->flags & OPf_KIDS) {
$kid = $op->first;
- if (defined prototype("CORE::$name")
- && prototype("CORE::$name") =~ /^;?\*/
+ my $builtinname = $name;
+ $builtinname =~ /^CORE::/ or $builtinname = "CORE::$name";
+ if (defined prototype($builtinname)
+ && prototype($builtinname) =~ /^;?\*/
&& $kid->name eq "rv2gv") {
$kid = $kid->first;
}