RE: How to Sort on a substr

2004-07-16 Thread Bob Showalter
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

Re: How to Sort on a substr

2004-07-15 Thread John W . Krahn
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

Re: How to Sort on a substr

2004-07-15 Thread Rob Benton
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!

Re: How to Sort on a substr

2004-07-15 Thread Gunnar Hjalmarsson
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

How to Sort on a substr

2004-07-15 Thread Jeff Westman
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