Thanks for the replies. I tried replying when last week, but the website just times out.
I also seriously question the wisdom, and the necessity, of buffering
+“from 1K to 1 million lines” in memory.
“Why is {the virtual} memory {paging file} superior to the file that y
+ou are already reading?”
Also: is this logfile a file of a well-known format, such as an Apac
+he server log, for which a suitable CPAN module already exists? Mig
+ht you, quite without intending to do so, be “doing a thing already d
+one?” Aye, ’tis dreadfully easy to do...
It is a log generated by a machine every time it does an action. It is a standard english text file, but unique in the sense of the text sequences it creates. If there is a better way then doing an OPEN on the file and reading the contents to a Array then I am ears. I need to be able to read each line of the file to look for certain sequences in each of those lines. In a file that has say 100,000 lines, it processes the array in like 8 seconds....so I'm not longing for performance just yet.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.