Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re^2: sorting entires by dateby ysth (Canon) |
on Jan 02, 2004 at 01:19 UTC ( [id://318211]=note: print w/replies, xml ) | Need Help?? |
If you have dates before and after time 1000000000 (Sept 2001), you need to use <=> instead of cmp (assuming traditional Unix epoch). Being able to do a numeric comparison on two substrings is one of those things that makes Perl Perl.
In Section
Seekers of Perl Wisdom
|
|