Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

RE: RE: RE: RE: Call Subroutines by Approximate Name (poetic license)

by tilly (Archbishop)
on Aug 07, 2000 at 03:02 UTC ( #26468=note: print w/replies, xml ) Need Help??


in reply to RE: RE: RE: Call Subroutines by Approximate Name (poetic license)
in thread Call Subroutines by Approximate Name

Ack. Very good question. Never tried that. I seem to have aquired a foot in my mouth.

You can get to any core function through CORE. For instance if you override print you can still call the real one as CORE::print. OTOH that does seem to be hacked in at a low level. I cannot figure out how to find it.

Normally, of course, your %package:: would work. But not in this case. :-(

BTW if you are curious, perlsub says that if you override a function in CORE::GLOBAL you will override the built-in in all namespaces. I didn't know that. I don't think that I particularly wanted to either...

  • Comment on RE: RE: RE: RE: Call Subroutines by Approximate Name (poetic license)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2020-02-17 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (71 votes). Check out past polls.

    Notices?