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.
In reply to Re: F_GETFL and Win32
by PodMaster
in thread F_GETFL and Win32
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |