|Perl: the Markov chain saw|
Extracting information from file to Hashby hok_si_la (Curate)
|on Jan 18, 2012 at 21:31 UTC||Need Help??|
hok_si_la has asked for the
wisdom of the Perl Monks concerning the following question:
Good localtime friends,
Given a large 1000+ line file with the following format (flexible here):
What would be the best way to extract all the information into a hash so that I can can perform sorts based on Collection, Status, and Modified?
1)Collection would be the db equivalent of an unique id.
2)I cannot use a database or non-core modules.
3)I will dynamically build web pages displaying collection information on a table row based upon a timeframe a user requests, so I will have to play with dates a bit.
4)The creation of the file containing the format about is done in the background, so anything I can do to speed up fetching/sorting specific to file format etc would be worth considering.
Thanks for your advice,