Re: Conditional sorting across two arrays

2006-12-12 Thread Mumia W.
On 12/12/2006 04:00 AM, Rinku Mahesh wrote: Hi, I've two arrays of same depth (let it be 6) 1st Array:- @unique {11 , 23, 44, 66, 900, 1009} 2nd Array:- @occ_count {2, 77, 22, 2, 77,29} Here I'm looking for a sorting mechanism with the following conditions:- a. So

Re: Conditional sorting across two arrays

2006-12-12 Thread Paul
On Tue, December 12, 2006 6:25 am, Ovid wrote: > --- Rob Coops <[EMAIL PROTECTED]> wrote: > >> Hi Rinku, >> Now I could try and explain this in my own words but I think this will help you a lot more. >> >> What you are looking for is a very common thing, your not the first to bump into this problem

RE: Conditional sorting across two arrays

2006-12-12 Thread Charles K. Clarkson
Rinku Mahesh wrote: : If the above explaination is confusing I'm looking for a way : where every element of an array can be mapped to corresponding : element of another array and as a whole both the arrays require : a sorting w.r.t. 2nd array. M.J. Dominus wrote t

Re: Conditional sorting across two arrays

2006-12-12 Thread Ovid
--- Rob Coops <[EMAIL PROTECTED]> wrote: > Hi Rinku, > > Now I could try and explain this in my own words but I think this > will help you a lot more. > > http://www.unix.org.ua/orelly/perl/advprog/ch02_02.htm > > What you are looking for is a very common thing, your not the first > to bump int

Re: Conditional sorting across two arrays

2006-12-12 Thread Dr.Ruud
Rinku Mahesh schreef: > I've two arrays of same depth (let it be 6) > > 1st Array:- @unique {11 , 23, 44, 66, 900, 1009} > 2nd Array:- @occ_count {2, 77, 22, 2, 77,29} > [...] > b. The values of 1st array should also change in accordance with > the positions of elements of 2nd array s

Re: Conditional sorting across two arrays

2006-12-12 Thread Rob Coops
Hi Rinku, Now I could try and explain this in my own words but I think this will help you a lot more. http://www.unix.org.ua/orelly/perl/advprog/ch02_02.htm What you are looking for is a very common thing, your not the first to bump into this problem :-) Regards, Rob On 12/12/06, Rinku Mah

Re: Conditional sorting across two arrays

2006-12-12 Thread Rob Dixon
Rinku Mahesh wrote: > Hi, > > I've two arrays of same depth (let it be 6) > > 1st Array:- @unique {11 , 23, 44, 66, 900, 1009} 2nd Array:- @occ_count {2, > 77, 22, 2, 77,29} > > Here I'm looking for a sorting mechanism with the following conditions:- > > a. Sort 2nd Array in descending order such

Conditional sorting across two arrays

2006-12-12 Thread Rinku Mahesh
Hi, I've two arrays of same depth (let it be 6) 1st Array:- @unique {11 , 23, 44, 66, 900, 1009} 2nd Array:- @occ_count {2, 77, 22, 2, 77,29} Here I'm looking for a sorting mechanism with the following conditions:- a. Sort 2nd Array in descending order such that it s