in reply to My code seems messy...
Additionally, you probably want to have a look at Date::Manip's 'ParseDate', Date::Calc's 'Parse_Date', Date::Parse, and Regexp::Common::time for ideas on improving or expanding your matching criteria (possibly as a replacement)while ( <$fh> ) { my ($yr, $mon, $day) = parse_date($_); next if ! defined $yr; # ... }
Cheers - L~R
|
|---|