http://qs321.pair.com?node_id=1216145


in reply to Re^2: Copy a builtin sub to a different name and then override ( goto &SUB )
in thread Copy a builtin sub to a different name and then override

# goto &CORE::hex; ## FAIL This works for me under 5.016003 even without the correct prototype:

Hi,

It turns out it works as designed, it merely returns different from CORE::hex(@_) , because of the prototype . I only checked for prototype on "hex" because it worked on "sleep", I forgot I preload Time::HiRes, I should have checked CORE::hex