Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Regex help

by Utilitarian (Vicar)
on Jun 21, 2012 at 14:36 UTC ( #977656=note: print w/replies, xml ) Need Help??

in reply to Regex help

So you need to
  • open the file
  • skip the first two line
  • while there is more data in the file:
    • split each line in two parts, a unique region identifier a data type and possibly a record count.
    • store the last two values in a hash of hashes keyed on region and column name
  • Iterate over the keys and do whatever it is you want to do with them

Have a go at coding that up, if it doesn't work for you, bring your issue to the forum and we'll do our best, but we are a teaching monastery, not a code writing service

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977656]
[Corion]: Talking about this makes me realize that it's likely only a half useful idea. But it still would be convenient to have as an option...
[Corion]: hippo: Hmmm - yeah, I could document it and wait for code implementing that option to show up ;-D

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2017-02-23 15:39 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (347 votes). Check out past polls.