siskos1 has asked for the wisdom of the Perl Monks concerning the following question:
i think, inserting map or grep function into sort function could do it, but i couldnt figure out how. can you help? thanks in advance.@a = qw (92 6 2); @b = qw (60 5 12); or equally @c = qw ( 92 60 6 5 2 12 ); what the result should be is; @c = (2 12 6 5 92 60);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sorting two arrays together
by moritz (Cardinal) on Dec 22, 2010 at 22:09 UTC | |
by youlose (Scribe) on Dec 23, 2010 at 09:11 UTC | |
|
Re: sorting two arrays together
by Anonyrnous Monk (Hermit) on Dec 22, 2010 at 22:20 UTC | |
by JavaFan (Canon) on Dec 22, 2010 at 22:49 UTC | |
by Anonyrnous Monk (Hermit) on Dec 22, 2010 at 23:38 UTC | |
by JavaFan (Canon) on Dec 22, 2010 at 23:49 UTC | |
by Anonyrnous Monk (Hermit) on Dec 23, 2010 at 00:11 UTC | |
| |
by siskos1 (Acolyte) on Dec 22, 2010 at 22:28 UTC | |
|
Re: sorting two arrays together
by thargas (Deacon) on Dec 23, 2010 at 12:53 UTC | |
|
Re: sorting two arrays together
by furry_marmot (Pilgrim) on Dec 23, 2010 at 22:13 UTC |