Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Joining separate data files to make one.

by sundialsvc4 (Monsignor)
on Oct 06, 2010 at 13:24 UTC ( #863786=note: print w/ replies, xml ) Need Help??


in reply to Joining separate data files to make one.

“The COBOL way” of doing this would be to SORT the individual files by the same key, then write logic that MERGEs the two sorted files together.   This is what you are doing here.

Another way to do it would be ... to use DBD::SQLite.   SQLite is a public domain database engine which works with single files.   (There is no “server.”)   So, instead of storing your data (initially, perhaps) as “a flat file,” you store it as a database... this “database” being, in fact, “just a file.”   SQLite is extremely robust and fast, and it is very heavily used in smart phones and so-forth.   I find myself using it rather constantly in situations where I normally would have used “a flat file.”   The overhead of doing so is, “essentially, nil.”


Comment on Re: Joining separate data files to make one.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863786]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-09-17 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (100 votes), past polls