in reply to Re: Overwrite built-in wantarray()
in thread Overwrite built-in wantarray()
I think the conclusion is correct, though the test is not done properly ;) — the function name argument to prototype should've been prefixed with CORE::.
Compare the results using a function that is overrideable, like open
for my $func qw(CORE::open open) { my $p = prototype $func; print "$func: ", defined $p ? $p : "(not overrideable)", "\n"; }
Output:
CORE::open: *;$@ open: (not overrideable)
|
|---|