in reply to How to convert a file descriptor plus access mode bits into a perl filehandle?
Don't know about XS, but in Perl,
open(my $fh, '<&=', $fd) or die($!);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to convert a file descriptor plus access mode bits into a perl filehandle?
by tfoertsch (Beadle) on Sep 10, 2008 at 16:46 UTC | |
by ikegami (Patriarch) on Sep 10, 2008 at 22:52 UTC |