On Tue, 18 Apr 2006, Carlos Barbet wrote: > OK, I thought perhaps using the FileHandle module would help, I > rewrote the script in the fashion below. And it remains limited to > 3197 using the Cygwin shell or 2045 using cmd.exe. I _assume_ the > issue is something to do with perl being an interpreted language and > an environment variable?? Is there a method to get this script to open > say 250,000 file handles (or whatever is the theoretical limit of file > handles in Win32). As one can guess, I am limited in my programming > experience, thus I don't know if I am barking up the wrong tree. > Perhaps a compiled language should be used for this task????
You are doing something wrong if you need so many filehandles open simultaneously. In standard IO library for C (stdio) used to limit filehandles to just a a few dozen. Solaris just recently allowed more than 256 different file descriptors per process. Note that there is no limit on how many files you can process sequentially. If you need that many files open simultaneously, then you probably should be storing your data in a proper database instead. Cheers, -Jan _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
