Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re^2: sorting entires by date

by ysth (Canon)
on Jan 02, 2004 at 01:19 UTC ( #318211=note: print w/ replies, xml ) Need Help??


in reply to Re^2: sorting entires by date
in thread sorting entires by date

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.


Comment on Re: Re^2: sorting entires by date
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://318211]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2015-07-04 04:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls