Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Extracting information from file to Hash

by JavaFan (Canon)
on Jan 18, 2012 at 21:47 UTC ( #948628=note: print w/ replies, xml ) Need Help??


in reply to Extracting information from file to Hash

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?
If you want to sort, hashes just get into your way. I'd use a array of arrays, each line represented by a 5 element array: collection id, image count, status, missing, and modified. Depending on what you need to do with the dates, I keep them as is, or convert them to UTC timestamps.


Comment on Re: Extracting information from file to Hash

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2015-07-06 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls