R
roland.yan
Dear Perl friend,
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,
........
........
Two question I have.
1. How to sort the array based on the date and time stamp.
2. then check the occurence based on the first field, like
'X2819460047100D'.
then push the first occurence into @1stOcc and push second occurance
into @2ndOcc.
not sure is it clear?
Appreciate your help.
Roland
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,
........
........
Two question I have.
1. How to sort the array based on the date and time stamp.
2. then check the occurence based on the first field, like
'X2819460047100D'.
then push the first occurence into @1stOcc and push second occurance
into @2ndOcc.
not sure is it clear?
Appreciate your help.
Roland