The stupid question is the question not asked | |
PerlMonks |
Re: Re: Reg expression on dayby trammell (Priest) |
on Dec 23, 2003 at 18:09 UTC ( [id://316669]=note: print w/replies, xml ) | Need Help?? |
Sure, and it cleans up a bit:
$date = join "/", map $_+0, split m[/], $date; Not sure if I like the idea of stripping those zeroes though. Probably better to store the date in a saner format (Epoch seconds maybe?), then use POSIX::strftime() to generate the desired date format.
In Section
Seekers of Perl Wisdom
|
|