You can only override some builtins, and those you can override must be overridden by importing the replacement functions from another module.
The former: Yes.
The latter: Um, no. Or at least, not quite:
~$ perl -le 'BEGIN { *CORE::GLOBAL::unlink = sub(@) { print "@_" } } u +nlink "aaa".."aad"' aaa aab aac aad
print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!
In reply to Re^2: Unit testing built-in functions
by Sidhekin
in thread Unit testing built-in functions
by aijin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |