pauld wrote:

John W. Krahn wrote:

It sorts fine here:

$ perl -le'
print for @x = qw/200610011733 200610012057 200610011029 200610010928 200610011220/, 
"";

print for sort @x;
'
200610011733
200610012057
200610011029
200610010928
200610011220

200610010928
200610011029
200610011220
200610011733
200610012057

the time is the last 4 digits (hhmm)
so the first is 17:33
then 20:57
then 10:29
then 09:28

i want them chronologically
ie
09:28
10:29
17:33
20:57

Your post misquoted John. This is his full response.

His program shows first the unsorted data and then the same information after
sorting. As he says, it seems to work fine.

Rob





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to