From:                   Uwe Mayer <[EMAIL PROTECTED]>
> 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?

erm ... do you really want to know? I mean overriding builtin 
functions is something that should NOT be done on regular basis. 
 
It's all in perlsub. See "Overriding Built-in Functions" there.

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
                                        --- me
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to