gildir has asked for the wisdom of the Perl Monks concerning the following question:
I have a package Foo with function sub delete {...}. In this function I want to call built-in perl function delete for deleting an element of hash. How do I do this? I found that I should use CORE::delete.
I tought that I know how Perl symbol tables work, but now I'm confused.
Where does perl build-in functions 'live'? In every package symbol table? I suppose not.
I guess they live in CORE package's symbol table.
So how they are called if they are not exported to every symbol table?
Are they treated as a reserved words in perl?
And if they are, why I'm allowed to define my function delete in my package?
Or maybe I've got it all wrong.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 1: Built-in functions and symbol table
by tilly (Archbishop) on Jun 06, 2001 at 16:08 UTC | |
Re: Built-in functions and symbol table
by Beatnik (Parson) on Jun 06, 2001 at 13:59 UTC |