borisz has asked for the wisdom of the Perl Monks concerning the following question:
I wonder why this works for glob, but not for chdir, system, chr and ord. Whats wrong with my code?*CORE::GLOBAL::system = sub { print "system\n" }; *CORE::GLOBAL::chdir = sub { print "chdir\n" }; *CORE::GLOBAL::glob = sub { print "glob\n" }; glob; chdir; system __OUTPUT__ glob
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: overwrite builtin functions ( system, chdir )
by ysth (Canon) on Apr 04, 2005 at 13:46 UTC | |
by borisz (Canon) on Apr 04, 2005 at 13:50 UTC | |
|
Re: overwrite builtin functions ( system, chdir )
by ktross (Deacon) on Apr 04, 2005 at 13:16 UTC | |
by borisz (Canon) on Apr 04, 2005 at 13:33 UTC |