|
|
| P is for Practical | |
| PerlMonks |
Re: How to calculate earliest date from log fileby CountZero (Chancellor) |
| on Nov 10, 2012 at 22:24 UTC ( #1003285=note: print w/ replies, xml ) | Need Help?? |
|
If it is a real log file then the first entry should be the oldest and you can extract the date easily from the first line with a regex such as /(\d{2}\/.{3\/\d{4})}/ CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James My blog: Imperial Deltronics
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||