Oct 14, 2010, 9:03 AM
Post #1 of 2
Building a time series from multiple files
I have a series of dated files (each file is associated with a specific date). Every file has a 2 columns, the first is a stock identifier and the second is an attribute value (e.g. price). I am looking for an efficient way to build a time series for a particular stock spanning a specific date range. The way I have done it already is to open each file that has a date within the specified range and read through line by line until I reach the specified stock identifier, read the attribute, move on to the next file. The question is: Is there a better way to do this in perl?
thanks in advance.