Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I'd be pretty surprised if this were a Perl limit, unless it's one of those things you configure at compile time (when you compile perl I mean) or is a limitation of the compiler that compiled perl or the standard C library it was compiled with or somesuch like that.

More likely I suspect you're hitting an OS limitation. This does surprise me a little coming from OS X, but it's not unheard-of. Earlier versions of MacOS had a global system-wide limit, and it was preposterously low. I think 9.0 *raised* the limit to like 256 or maybe 512, and again that's global for all apps combined. If OS X limits *each process* to 250, that seems inane, but it's still an improvement.

My perl here can open a thousand files for output (5.8.1 on Mandrake 9.2), but it doesn't seem to be able to go much higher than that. "Inappropriate ioctl for device", $! tells me on about the 1022nd file. Again, this seems bad, but I doubt it's perl's fault.


;$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$;[-1]->();print

In reply to Re: Perl limits on number of open files? by jonadab
in thread Perl limits on number of open files? by moof1138

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-20 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found