in reply to Modifying Global Variable
Greetings Willman023
If you want to just convert from your YYYY-MM-DD HH:MM:SS format into UNIX time, then why not just use CPAN's Date::Parse?
use Date::Parse; print str2time('2003-01-08 09:55:36'), "\n";
Or if you want to just save the datetime into $date:
use Date::Parse; my $date = str2time('2003-01-08 09:55:36');
gryphon
code('Perl') || die;
|
---|
In Section
Seekers of Perl Wisdom