Hallo Jenda,

>> From: [EMAIL PROTECTED]
>> I'd like to override standard functions like 'print' but I can't
>> figure out how to do that. Ideas? I've included a sample of how I
>> *expected* the code to work where a print in main would really be
>> &main::print() which is free to call (or not) &CORE::print(). What do
>> I need to do to make the first normal print call work like the second
>> qualified call and the third normal print call? You'll notice how the
>> first print() call uses CORE::print while the second print() uses
>> main::print().

Time by time I always discover new things and tweaks with Perl. This
time its the first time I come across the keyword "CORE".
It took me some time to understand GLOBs and even the perldoc perlref
was only moderately helpful.
Can someone tell me where to read more of CORE and possibly other
default packages(?) I seemed to miss?

BTW: where are the BEGIN() and END() functions documented?

JK> I think you want to read
JK>         perldoc perltie 
JK>                 (about "Tying FileHandles")
JK>         perldoc Tie::Handle

Great! I loved it. Thanks.

JK> The more normal functions may be overwritten like this :

[snip]

JK>         BEGIN {
JK>         *CORE::GLOBAL::sin = \&mysin;
JK>         }

Here it's again. Whats "CORE", whats "GLOBAL"?
Where can I read something about it?

Thanks in advance!

Ciao
Uwe
--
Share what you know. Learn what you don't.

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to