When I use a lexical (open $file, ...) I get undef into $_[0].
Well, if your calling code is something like
my $file; open $file, ...
then $file is undef, and open changes its value to be a file handle - but since you haven't called the core open() yet, you still see the undef.
In reply to Re: Override the open builtin globally
by moritz
in thread Override the open builtin globally
by ninuzzo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |