If you are on Linux you could use something like:
Of course as someone else said you might want to make a judgement as to whether you want to close your STDIO handles :-)#!/usr/bin/perl -w + opendir FD,'/proc/self/fd' or die "Can't open FDs - $!\n"; + my @FDS = grep !/^\.{1,2}$/, readdir FD ; + print "@dirs";
/J\
In reply to Re: Counting open files?
by gellyfish
in thread Counting open files?
by Eyck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |