develooper Front page | perl.beginners | Postings from April 2002

Re: Concatenating , the final time

Thread Previous
From:
drieux
Date:
April 29, 2002 09:02
Subject:
Re: Concatenating , the final time
Message ID:
71223E91-5B8A-11D6-88C8-0030654D3CAE@wetware.com

On Sunday, April 28, 2002, at 06:57 , james poni wrote:

> How would i modify this program in order to do so ? Do i need a time hash 
> eg time = (12:00 =>1,12:30=>2,13:00=>3,13:30=>4 ......) ?

why not a simple two stage sort routine?

having solved for the day value split the 'time' field
into two pieces $hr and $min and sort first on the $hr
value - IF they are equal then compare the rest...


ciao
drieux

---


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About