in reply to Re^7: fcntl failure after eval
in thread fcntl failure after eval

The argument of the readdir system call is a file descriptor, and Perl passes that to it. The last argument of fcntl system call is a pointer to a series of bytes of no defined format. Perl allows you to pass that to it.