http://qs1969.pair.com?node_id=659894


in reply to Open a file on a specific file descriptor?

Perl's open() interface (and for that matter the underlying UNIX/Linux open(2) interface) don't allow you to specify a particular file descriptor. The usual way to handle this would be keep creating handles until the descriptor reaches the desired number. Note also that the parent should be creating a couple of pipes using the pipe() function to create the connections between parent and child.

Dave.