in reply to Counting open files?
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\
|
|---|