Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Need help comparing 4 datesby ig (Vicar) |
on Oct 02, 2010 at 23:17 UTC ( [id://863120]=note: print w/replies, xml ) | Need Help?? |
I'm not sure why you say Date_Cmp doesn't recognize the date formats. Maybe because your test of $flag isn't doing what you think it should. $flag can be -1, 0 or 1. Your output suggests the same result whenever the dates for Bob and Jim are different, regardless of which is the earlier date, and something else when they are the same. You might try the test $flag > 0 and see if that gives you the result you are expecting.
In Section
Seekers of Perl Wisdom
|
|