Message-Id: <
200612101938.kBAJcI9D008026@all-night-tool.mit.edu>
Allow to make fatal built-ins in CORE::GLOBAL
p4raw-id: //depot/perl@29507
use strict;
our($AUTOLOAD, $Debug, $VERSION);
-$VERSION = 1.04;
+$VERSION = 1.05;
$Debug = 0 unless defined $Debug;
$sref = \&$sub;
$proto = prototype $sref;
$call = '&$sref';
- } elsif ($sub eq $ini) { # Stray user subroutine
+ } elsif ($sub eq $ini && $sub !~ /^CORE::GLOBAL::/) {
+ # Stray user subroutine
die "$sub is not a Perl subroutine"
} else { # CORE subroutine
$proto = eval { prototype "CORE::$name" };