in reply to F_GETFL and Win32
You might try using Win32API::File or simply try printing
though that may not be desireable.sub _is_writable { my $fh = shift; return eval { defined print { $fh } ''; }; }
update: It just dawned on me that printing on a CLOSED filehandle is different error, than simply a filehandle thats not opened for writing, in which case you want to use the fileno function.
|
|---|