Start at 0 if you want to close stdin stdout and stderr also.
use POSIX (); ... POSIX::close( $_ ) for 3 .. 1024; ## Arbitrary upper bound
In reply to Re: how to close all files
by BrowserUk
in thread how to close all files
by eleron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |