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

Help with sort

2010-03-31 Thread Barry Brevik
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 they have been loaded into the