Perl fileno Function


Advertisements


Description

This function returns the file descriptor number (as used by C and POSIX functions) of the specified FILEHANDLE. This is generally useful only for using the select function and any low-level tty functions.

Syntax

Following is the simple syntax for this function −

fileno FILEHANDLE

Return Value

This function returns File descriptor (numeric) of FILEHANDLE and undef on failure.


perl_function_references.htm

Advertisements