ihperlbeg has asked for the wisdom of the Perl Monks concerning the following question:
I have the following problem
any help? suggestions? Thanks!DATA xhahhxha 60 3 hahaghagah 10 1 101 xhahhxha 60 3 jrthtahtat 8 1 110 xhahhxha 60 3 shdgehsh 8 1 150 hsghtahs 100 19 hahaghagah 10 20 200 hsghtahs 100 19 jrthtahtat 10 20 300 hsghtahs 100 19 shdgehsh 10 20 400 I want to sort this data such that it outputs a unique string from fir +st column (sorted based on second column value, lowest value string f +irst and its best possible match based on the lowest value in the fif +th column and highest value in seventh column (if value in the fifth +column is equal). so the output should look like this for the above e +xample: xhahhxha 60 3 shdgehsh 8 1 150 hsghtahs 100 19 shdgehsh 10 20 400
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sorting a table columns using hashes
by Marshall (Canon) on May 05, 2011 at 15:56 UTC | |
by LanX (Saint) on May 05, 2011 at 16:09 UTC | |
by Marshall (Canon) on May 05, 2011 at 16:35 UTC | |
|
Re: sorting a table columns using hashes
by LanX (Saint) on May 05, 2011 at 15:25 UTC | |
|
Re: sorting a table columns using hashes
by Utilitarian (Vicar) on May 05, 2011 at 15:39 UTC | |
by ihperlbeg (Novice) on May 05, 2011 at 15:46 UTC | |
by Utilitarian (Vicar) on May 05, 2011 at 15:56 UTC |