Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a csv file which looks like
100.1,A ,25, 36,56,89,45,36,56
25.1 ,B,232,565,65,56,56,48,25
103.1,C,25,5,6,9,4,5,56,889,9
10.1,D,5,6,5,8,9,8,12,23,36,6 and so on
so I have a pre defined order of test numbers given by user say the order is 10.1,100.1,25.1,103.1 (see column 1) , then my csv should get arranged as
10.1,D,5,6,5,8,9,8,12,23,36,6
100.1,A ,25, 36,56,89,45,36,56
25.1 ,B,232,565,65,56,56,48,25
103.1,C,25,5,6,9,4,5,56,889,9
hence the content remained the same , only the order changed in csv file . how can I do it
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: arranging the csv file
by Loops (Curate) on Jul 24, 2013 at 04:14 UTC | |
by 2teez (Vicar) on Jul 24, 2013 at 05:59 UTC | |
by hdb (Monsignor) on Jul 24, 2013 at 07:03 UTC | |
by Anonymous Monk on Jul 24, 2013 at 07:13 UTC | |
by hdb (Monsignor) on Jul 24, 2013 at 07:18 UTC | |
|
Re: arranging the csv file
by 2teez (Vicar) on Jul 24, 2013 at 06:37 UTC | |
|
Re: arranging the csv file
by mtmcc (Hermit) on Jul 24, 2013 at 06:26 UTC | |
|
Re: arranging the csv file
by Anonymous Monk on Jul 24, 2013 at 04:00 UTC |