in reply to When do subs get overridden?

You missed one more way two ways of calling main::q

print ::q("this isn't printed either"),$/; print &q("me either"),$/;

Update: added second line of code and this:
If I read the docs correctly, you should be able to override the built-ins by using prototypes. And I had better shut up before I give away all my obfu secrets ;-)

Replies are listed 'Best First'.
Re^2: When do subs get overridden?
by LAI (Hermit) on Apr 03, 2003 at 21:29 UTC

    I know there's different ways of calling main::q. What I'd like to do, though, is to override the builtin q so that I can call main::q with a plain ol' q().

    Actually, no. I don't want to do that, I want to know how to do that, if possible. I actually have no plans to override builtins for any purpose, but I'm just curious as to if and how it's possible.

    LAI

    __END__