I have got 2 files which I need to parse based on certain features but the files are too big as much as 3 GB so I am unable to use array or even storage variables.
So if the file is too big for one approach, you need to use another approach. I don't see what the problem is.
Reading some file into memory is all well and good if you have enough memory, but if it doesn't fit in memory, that's not the end of the known constellations of solutions. Obviously, you have to do some sort of paging to disk, either yourself or using a database. Just go from there.
Don't let one obstacle stop you from making progress on your problem, what ever it is. Try lots of different approaches, and remember Edison's attitude when someone asked him on his progress to find a suitable material for the filament of an electric light bulb. He didn't say he'd failed 400 times, he said he'd tried 400 different possibilities and hadn't yet found the correct one.
Onward!
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds
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.