I'd covert the two dates that you get from the command line into numbers (for example days since 1900-01-01 or so), and do the same for each date that you parse. Then you need to only do two comparisons per line.
I personally like Date::Simple for such tasks (the ones that only involves dates, not times, and it seems you can ignore times here).
In reply to Re: Extracting Log File data for a given date range
by moritz
in thread Extracting Log File data for a given date range
by vishi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |