CC: | doherty [...] pythian.com |
Subject: | OsFHandleOpen doesn't autovivify undef into a filehandle |
The documentation claims that "FILE is a Perl file handle [in any of the
supported forms, a bareword, a string, a typeglob, or a reference to a
typeglob" -- but when I pass a scalar that is undef, it is not
autovivified as I expected.
If that's the case, you can't write OsFHandleOpen( my $fh, $win32_fh, 'r'
)
As a workaround, you can do OsFHandleOpen( my $fh = FileHandle->new(),...)
instead.