There's no simple way to close all files. You can try:
Also exec(3) will close most of the fdsuse POSIX; POSIX::close($_) for (0..1024);
Update: also read how to close all files
Also this should be POSIX::close
In reply to Re: Closing all filehandles associate with an fd
by zwon
in thread Closing all filehandles associate with an fd
by james.oden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |