Perl-Sensitive Sunglasses | |
PerlMonks |
Re: dynamic regexby Kenosis (Priest) |
on Dec 04, 2012 at 03:59 UTC ( [id://1006989]=note: print w/replies, xml ) | Need Help?? |
I agree with graff about using a Date:: module. How would you create the end given this start?
Consider the following:
Output:
You can use Date::Parse to convert a line's date/time string to seconds, and then print the line if the value's within the $startSeconds and $endSeconds range.
In Section
Seekers of Perl Wisdom
|
|