in reply to Help me update stubborn perlfaq answers!
over the syscall.use POSIX; POSIX::close($fd) or die "close failed: $!";
And perhaps add a comment about the portability of using numeric file descriptors, but I'm not qualified to write such a comment.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Help me update stubborn perlfaq answers!
by brian_d_foy (Abbot) on Apr 18, 2005 at 20:15 UTC | |
by darrellb (Acolyte) on Apr 18, 2005 at 21:05 UTC | |
by darrellb (Acolyte) on Apr 18, 2005 at 23:57 UTC |