XP is just a number | |
PerlMonks |
perlfunc:fcntlby gods (Initiate) |
on Aug 24, 1999 at 22:42 UTC ( [id://214]=perlfunc: print w/replies, xml ) | Need Help?? |
fcntlSee the current Perl documentation for fcntl. Here is our local, out-dated (pre-5.6) version: fcntl - file control system all
fcntl FILEHANDLE,FUNCTION,SCALAR
Implements the
use Fcntl; first to get the correct constant definitions. Argument processing and value return works just like ioctl() below. For example:
use Fcntl; fcntl($filehandle, F_GETFL, $packed_return_buffer) or die "can't fcntl F_GETFL: $!";
You don't have to check for defined() on the return from
Note that fcntl() will produce a fatal error if used on a machine that doesn't implement
|
|