Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Copy a builtin sub to a different name and then override ( goto &SUB )

by beech (Parson)
on Jun 07, 2018 at 22:13 UTC ( #1216145=note: print w/replies, xml ) Need Help??


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

  • Comment on Re^3: Copy a builtin sub to a different name and then override ( goto &SUB )
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1216145]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2021-04-20 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?