in reply to Re^2: opening filehandle with Win32API::File seems to return scalar (OsFHandleOpen)
in thread opening filehandle with Win32API::File seems to return scalar

OsFHandleOpen( my $fh = IO::Handle->new(), $hObject, 'rw' ) or die ...

It would actually have a saner interface if it weren't emulating open's weird interface. And it has yet to adopt the new idea of open autovivifying when passed undef instead of a handle (though I recall coding that improvement long ago, just never got released, it seems).

- tye        

  • Comment on Re^3: opening filehandle with Win32API::File seems to return scalar (IO::Handle)
  • Download Code