Nov 25, 2001, 4:30 AM
Post #4 of 4
Well, with efficient I mean that:
Re: Store data fields efficeintly
[In reply to]
- There shouldn't be tons of files to store all the different items (like 400 files for 25 downloads)
- Storing all the data in one file can also be difficult, since that requires much more programming work.
Most of the tables (you can call them that) have a variable size. It's easy off course to store each table in a different file, and loading that into an array with @lines = <FH> However, it's better to place some more bytes in the same file, I can use some split functionality...
But speed in the file IO would be welcome...
That's why I am so keen one binary files, wherein you can just jump to the right character. However, I find it very difficult in perl to make that compatible for transfering.
I need a mix between putting all data into one file, and store each table in a different file. I don't know what mix is better.
Yet an Other Perl Programmer
Find out more about programming