Cheap web site hosting service by Active-Venture.com
  

 Back to Index

fileno

fileno FILEHANDLE

Returns the file descriptor for a filehandle, or undefined if the filehandle is not open. This is mainly useful for constructing bitmaps for select and low-level POSIX tty-handling operations. If FILEHANDLE is an expression, the value is taken as an indirect filehandle, generally its name.

You can use this to find out whether two handles refer to the same underlying descriptor:

 
    if (fileno(THIS) == fileno(THAT)) {
	print "THIS and THAT are dups\n";
    }  

(Filehandles connected to memory objects via new features of open may return undefined even though they are open.)

 

  

 

Domain registration - Domain registration service and cheap domain transfer
 

Cheap domain names -
Register domain name services from just
$8.95/year only
 

Register domain name search -
Register domain or buy domain name registration and cheap domain transfer at low, affordable price.

© 2002-2004 Active-Venture.com Web Site Hosting Service

 

[ Computer Science is no more about computers than astronomy is about telescopes.   ]

 

 
 
 

Disclaimer: This documentation is provided only for the benefits of our web hosting customers.
For authoritative source of the documentation, please refer to http://www.perldoc.com