start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: fcntl Chapter 5
Function Reference
Next: Reference: flock
 

fileno

fileno 
filehandle

Returns the file descriptor for a filehandle. (A file descriptor is a small integer, unlike the filehandle, which is a symbol.) It returns undef if the handle is not open. It's useful for constructing bitmaps for select , and for passing to certain obscure system calls if syscall is implemented. It's also useful for double-checking that the open function gave you the file descriptor you wanted.


Previous: Reference: fcntl Perl in a Nutshell Next: Reference: flock
Reference: fcntl Book Index Reference: flock

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.