Jeff Westman wrote:
> Hi,
>
> I need to do a sort on a couple of column ranges.
>
> I want to be able to do a primary sort, on say, columns 21-25 and
> then a secondary sort on columns 40-49.
>
> Any ideas on how to approach this?
Assuming you're numbering columns from 1:
@rows = sort { sub
On Thursday 15 July 2004 13:54, Jeff Westman wrote:
>
> Hi,
Hello,
> I need to do a sort on a couple of column ranges.
>
> I want to be able to do a primary sort, on say, columns 21-25 and
> then a secondary sort on columns 40-49.
>
> Any ideas on how to approach this?
This should work:
my @sor
Jeff Westman wrote:
Hi,
I need to do a sort on a couple of column ranges.
I want to be able to do a primary sort, on say, columns 21-25 and
then a secondary sort on columns 40-49.
Any ideas on how to approach this?
TIA
/j
__
Do you Yahoo!?
Yahoo!
Jeff Westman wrote:
I need to do a sort on a couple of column ranges.
I want to be able to do a primary sort, on say, columns 21-25 and
then a secondary sort on columns 40-49.
Any ideas on how to approach this?
Yes.
1. Check out the docs for the sort() function.
2. Check the Perl FAQ:
perldoc
Hi,
I need to do a sort on a couple of column ranges.
I want to be able to do a primary sort, on say, columns 21-25 and
then a secondary sort on columns 40-49.
Any ideas on how to approach this?
TIA
/j
__
Do you Yahoo!?
Yahoo! Mail - You ca