Welcome to the Monastery | |
PerlMonks |
Re: Re: Re: Date comparisonby dws (Chancellor) |
on Jul 05, 2002 at 23:07 UTC ( [id://179760]=note: print w/replies, xml ) | Need Help?? |
Since str2time() is a relatively expensive routine, this a perfect time for pulling out the "Orcish Maneuver".
In the example above, change my @sorted = sort {str2time($a) <=> str2time($b)} @dates; to
In Section
Seekers of Perl Wisdom
|
|