http://www.perlmonks.org?node_id=919896


in reply to Re^2: Difference between File Handles and File Descriptors in function parameters.
in thread Difference between File Handles and File Descriptors in function parameters.

A file descriptor is a number which specifies a IO stream. In Unix and other POSIX environments, there is an array called the file descriptor table, and you can use a number which indexes one of those entries: 0 is STDIN, 1 is STDOUT, 2 is STDERR ... the remainder you open yourself.

See Wikipedia's explanation.

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

  • Comment on Re^3: Difference between File Handles and File Descriptors in function parameters.