Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by tilly (Archbishop)
on Aug 06, 2000 at 23:02 UTC ( [id://26468]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://26468]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.