Re: how to sort a array?
- From: "Dr.Ruud" <rvtol+news@xxxxxxxxxxxx>
- Date: Sun, 16 Jul 2006 14:25:22 +0200
roland.yan@xxxxxxxxx schreef:
"How to sort an array?" See `perldoc -f sort`.
I have a string array, for example @SampleArray, with the date and
time stamp included.
X2819460047100D,13/07/2006 23:50:39,OK,MC8775,R0-0-9,0.983,
X2819460016100D,13/07/2006 21:4:2,OK,MC8775,R0-0-9,0.672,
X2819460027100D,13/07/2006 23:52:39,OK,MC8775,R0-0-9,0.736,
X2819460072100D,13/07/2006 23:54:35,OK,MC8775,R0-0-9,0.825,
X2819460072100D,13/07/2006 23:56:37,OK,MC8775,R0-0-9,0.952,
You effectively want to isolate the first two of a group. For an
undisclosed reason you have decided that you want to use an array for
that.
You need to sort the data, on column 1+2, but your column 2 contains
strange time value representations, so you better fix those first.
--
Affijn, Ruud
"Gewoon is een tijger."
.
- References:
- how to sort a array?
- From: roland . yan
- how to sort a array?
- Prev by Date: Re: A simply regex question
- Next by Date: Re: A simply regex question
- Previous by thread: Re: how to sort a array?
- Next by thread: Re: how to sort a array?
- Index(es):
Relevant Pages
|
|