For any halfway decent modern OS (or even Windows for that matter . . .) 36 open files should be no problem. The size of the file itself doesn't enter into the equation since all filehandles are underneath is (more or less) a few pointers; the storage requirements for one are miniscule. Granted if you were talking about several more orders of magnitude (thousands of handles) you might run into problems and need to look at something like FileCache, but for this many it shouldn't be a problem.

Update: Oop I didn't even think about it (stayed up too late running SM 4-man last night . . . :), but as is pointed out below each file should already be sorted so you just read until the date changes and then open the new output file. Now if you had multiple files you wanted to merge (say from n separate webservers) into one consolidated log file you would need multiple open files for reading, but again just one output file would serve.


In reply to Re: Opine on multiple open filehandles vs. multiple loops through data by Fletch
in thread Opine on multiple open filehandles vs. multiple loops through data by aboyd

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.