Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Sorting a logfile by date to print to html

by mikeB (Friar)
on Oct 09, 2001 at 21:23 UTC ( [id://117801]=note: print w/replies, xml ) Need Help??


in reply to Sorting a logfile by date to print to html

How large is your logfile, compared to available memory? If you can keep the whole thing in memory, check out perl's sort command.

I prefer to sort dates by formatting them yyyymmdd, at which point they can be numerically sorted (or character sorted, too, in ASCII :) There may be better ways, but this one's quick and easy.

CPAN has numerous date functions that may be of help.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found