in reply to Re: Unit testing built-in functions
in thread Unit testing built-in functions
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!
|
|---|