On 12/1/06, Ravi Malghan <[EMAIL PROTECTED]> wrote:
Hi: is there a limit on number of files that can be open within perl.
Some systems use ulimit to put an upper limit on the number of open files. And I believe that at least some perl releases have an overall limit of 128 files at once.
I am opening about 194 files and am seeing some weird behaviour. When i write to the filehandles, I see it writes ok to some files and not to the others. But I donot see any errors either.
How odd. Did you check for errors upon every open()? Perl should (if warnings are enabled) warn you if you're using a broken filehandle. You probably want the FileCache module, which lets your Perl code pretend many files are open; it opens and closes filehandles as needed so that your OS sees only a few files in use at any one time. use FileCache maxopen => 16; Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>