NAME

Win32::Fmode - determine whether a Win32 filehandle is opened for reading, writing , or both.

SYNOPSIS

use warnings;
use Win32::Fmode;
.
.
my $mode = fmode( \*HND ); # HND is an open filehandle

FUNCTIONS

The purpose is to work around the MS C runtime libraries lack of a
function to retrieve the file mode used when a file is opened.

Exports a single function: fmode

Pass it a Perl filehandle and it will return a numeric value that
represents the mode parameter used on the open.

    fmode( \*FILEHANDLE ) &   1 and print "is readonly";
    fmode( \*FILEHANDLE ) &   2 and print "is writeonly";
    fmode( \*FILEHANDLE ) & 128 and print "is read/write";

LICENSE

This program is free software; you may redistribute it and/or
modify it under the same terms as Perl itself.

AUTHOR & COPYRIGHT

Written by BrowserUK/Perlmonks.com.
Copyright BrowserUK/perlmonks.com.
bug reports to fq9vbpi02@sneakemail.com