in reply to How to write this code correctly ??? Please help
Apart from what was said, you might want to use strftime() from the POSIX module, or CPAN's Date::Format to do your date/time conversions conveniently.
Update: Of course, there's also Date::Manip (pure Perl) which also has a very intelligent input parser, and Date::Calc (XS/C library), which is faster.
So long,
Flexx
|
---|
In Section
Seekers of Perl Wisdom