Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

RE: Data structure for log file processing

by nuance (Hermit)
on Aug 24, 2000 at 20:12 UTC ( [id://29446]=note: print w/replies, xml ) Need Help??


in reply to Data structure for log file processing

I was going to make a hash with keys of ProductName and user@host, and store a string consisting of the date and time for each OUT record

I thought about just concatenating time+date+product+user@host into one string and pushing it on an array, and then scanning that array

If you pushed that string from your first suggestion onto an anonymous array, it would be much easier to process. You basically end up with a hash of anonymous arrays that are more easily searched.

Nuance

  • Comment on RE: Data structure for log file processing

Replies are listed 'Best First'.
RE: RE: Data structure for log file processing
by husker (Chaplain) on Aug 24, 2000 at 22:21 UTC
    Thanks. That got it working! I was so close, yet so far. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found