Re: Help with sort

2010-04-01 Thread rex njoku
Sorry, that was meant for 'williamawalters' (multi-key recursive approach), not Barry :) Rex On Thu, Apr 1, 2010 at 3:39 PM, rex njoku wrote: > Barry, > > Haven' t tried your code yet, but from what you wrote as your results...It > is wrong. In your results, you have: > CALIBRATION1 > CALIBR

Re: Help with sort

2010-04-01 Thread rex njoku
Barry, Haven' t tried your code yet, but from what you wrote as your results...It is wrong. In your results, you have: CALIBRATION1 CALIBRATION02 YESTECH-L3-RW1 YESTECH-L03-RW2 The correct order is supposed to be: CALIBRATION02 CALIBRATION1 YESTECH-L03-RW2 YESTECH-L3-RW1 Rex On Thu, Apr 1,

Re: Help with sort

2010-04-01 Thread williamawalters
-Original Message- From: Barry Brevik To: activeperl@listserv.ActiveState.com Sent: Wed, Mar 31, 2010 8:36 pm Subject: Help with sort > I'm having a problem sorting data items that are alpha-numeric strings. I know how to do it if the string is all alpha or all n

RE: Help with sort

2010-04-01 Thread BOURGNEUF Francois
CH-L4-RW125 Bour9 -Message d'origine- De : activeperl-boun...@listserv.activestate.com [mailto:activeperl-boun...@listserv.activestate.com] De la part de Francisco Zarabozo Envoyé : jeudi 1 avril 2010 06:00 À : Barry Brevik; activeperl@listserv.ActiveState.com Objet : Re: Help with sort Hi

RE: Help with sort

2010-04-01 Thread Brian Raven
Barry Brevik <> wrote: > I'm having a problem sorting data items that are alpha-numeric > strings. > I know how to do it if the string is all alpha or all numeric, but > the combo eludes me. > > Take as example the following code. It is my desire that the machine > names be processed in the orde

Re: Help with sort

2010-03-31 Thread Francisco Zarabozo
Hi, I wrote this sorting subroutine for those cases. It works very fine to me, I hope it works for you. Include this subroutine in your code and then only use lines like the following when sorting data: for my $key (sort alphaANDnumeric keys %mdata) { print "$key\n"; } The subroutine I wro

Re: Help with sort

2010-03-31 Thread Bill Luebkert
Barry Brevik wrote: > I'm having a problem sorting data items that are alpha-numeric strings. > I know how to do it if the string is all alpha or all numeric, but the > combo eludes me. > > Take as example the following code. It is my desire that the machine > names be processed in the order that

Re: Help with sort

2010-03-31 Thread John W Kennedy
On Mar 31, 2010, at 8:36 PM, Barry Brevik wrote: > I'm having a problem sorting data items that are alpha-numeric strings. > I know how to do it if the string is all alpha or all numeric, but the > combo eludes me. > > Take as example the following code. It is my desire that the machine > names