in reply to Re: overwrite builtin functions ( system, chdir )
in thread overwrite builtin functions ( system, chdir )

Hi,
No, that is not enough, I like to overwrite the functions global regardless of the namespace.
So that this work:
*CORE::GLOBAL::system = sub { print "system\n" }; *CORE::GLOBAL::chdir = sub { print "chdir\n" }; *CORE::GLOBAL::glob = sub { print "glob\n" }; package xyz; glob; chdir; system
Boris