hello,
I've made this script
he doesn't run good
he doesn't compare the 2 dates correctly
it returns me ok or 2007 is less than 2008
i don't understand ?
Thanks
I've made this script
Code:
#!/usr/bin/perl -w
use strict;
use warnings;
use English;
use POSIX qw(strftime);
my $madate1 = strftime( '%d/%m/%Y %H:%M:%S', localtime );
my $madate='22/10/2008 12:00:00';
if ($madate le $madate1)
{
print "ok\n";
}
else
{
print "ko\n";
}
he doesn't run good
he doesn't compare the 2 dates correctly
it returns me ok or 2007 is less than 2008
i don't understand ?
Thanks