Your skill will accomplish what the force of many cannot |
|
PerlMonks |
How do I close a file descriptor by number?by faq_monk (Initiate) |
on Oct 13, 1999 at 03:42 UTC ( [id://816]=perlfaq nodetype: print w/replies, xml ) | Need Help?? |
Current Perl documentation can be found at perldoc.perl.org. Here is our local, out-dated (pre-5.6) version:
This should rarely be necessary, as the Perl
require 'sys/syscall.ph'; $rc = syscall(&SYS_close, $fd + 0); # must force numeric die "can't sysclose $fd: $!" unless $rc == -1;
|
|