Allow CORE::GLOBAL:: subs in general to be aliased to consts
authorFather Chrysostomos <sprout@cpan.org>
Tue, 5 Nov 2013 20:52:58 +0000 (12:52 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 6 Nov 2013 13:56:03 +0000 (05:56 -0800)
commit6041797116255448479c592eb33e3a41ef2f59dc
treeb1d3960ca23d43b0a78b00ef44130fbbff0f0ba5
parent8941bf970eeb8009630d57a0b1bacb99f40db9bf
Allow CORE::GLOBAL:: subs in general to be aliased to consts

$ perl5.8.8 -e 'use constant foo=>1; BEGIN { *{"CORE::GLOBAL::time"} = \&{"foo"};1} warn time'
1 at -e line 1.
$ perl5.10.1 -e 'use constant foo=>1; BEGIN { *{"CORE::GLOBAL::time"} = \&{"foo"};1} warn time'
1383661397 at -e line 1.

When the storage of constants was optimised in perl 5.10, the code that
checks for global overrides was not updated to account.
t/op/override.t
toke.c