Front page | perl.beginners |
Postings from April 2002
From: Gabby Dizon
April 2, 2002 03:49
Message ID: firstname.lastname@example.org
hello list friends,
hope you can help me with my problem. here it is:
i have a date string formatted this way: $date = "Apr. 02, 2002"
i want to capture the "Apr" (without the period) into $1, "02" into $2, and
"2002" into $3.
note that some months may not be abbreviated (such as May), and therefore
might not have a period.
my regex skills are still sadly inferior (though i'm learning =)
my second (and optional) problem for you to solve: i want to transform this
into mysql date format (yyyy-mm-dd). this is easy enough to do, but i was
wondering if there are any modules there that can date manipulation a lot
easier. if you know any, just let me know.
thanks a lot!
Inq7 Interactive, Inc.
by Gabby Dizon