BigJoe has asked for the wisdom of the Perl Monks concerning the following question:

Yesterday I recieved a hand full of disks which contained simularly formatted text files. I was told enter these into the database. I was like "This sounds like a job for PERL!!" 2 hours into parsing these text files I noticed something the date feilds were formatted randomly. Some of them are formatted like March 12, 1982 others like 6/12/82 and yet others like 6/82. I am in search of a module that can take any of these formats and return any information that it can derive from it.

I have tried Date::Parse which works fine for 6/12/82 styles but that is it. I am hoping to find one that parses the date like Date::Parse where it then returns an array with the values.

--BigJoe

Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.

Replies are listed 'Best First'.
Re: Parsing or Converting Dates
by japhy (Canon) on Nov 07, 2000 at 22:17 UTC
    I think Date::Manip is for you. It's everything PLUS the kitchen sink.

    $_="goto+F.print+chop;\n=yhpaj";F1:eval