bash-2.05$ ulimit -a
core file size (blocks)     unlimited
data seg size (kbytes)      unlimited
file size (blocks)          unlimited
open files                  256
pipe size (512 bytes)       10
stack size (kbytes)         8192
cpu time (seconds)          unlimited
max user processes          29995
virtual memory (kbytes)     unlimited

Looks like I can open only 256 files. Anyway I can get around within perl 
without changing the actual limit on the operating system.

Thanks
Ravi


----- Original Message ----
From: John W. Krahn <[EMAIL PROTECTED]>
To: Perl Beginners <beginners@perl.org>
Sent: Friday, December 1, 2006 10:16:58 PM
Subject: Re: Limit of number of files that can be opened in perl


Ravi Malghan wrote:
> Hi: is there a limit on number of files that can be open within
> perl. 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. Just that somefiles donot have what I am expecting.
> 
> If there is a limit, how do I work around it?

If you are on Unix/Linux:

man ulimit



John
-- 
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order.       -- Larry Wall

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


 
____________________________________________________________________________________
Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it now.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to