Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1216145]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-23 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found