in reply to Passing a filehandle from C to perl

You know what you want is in file descriptor 3, you say? See perlfunc:open, If you specify '<&=N', where N is a number, then Perl will do an equivalent of C's fdopen() of that file descriptor;
  • Comment on Re: Passing a filehandle from C to perl