[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] sorting arrays (mea culpa)



At 21:22 -0700 6/17/99, Vicki Brown wrote:
> At 16:25 -0700 06/17/1999, Vicki Brown wrote:
>>At 16:26 -0400 6/17/99, Richard Gordon wrote:
>> > do, what's wrong with:
>> >
>> > @fields = <INFILE>;
>> > s/\|\|/, /g;
>> > print sort @fields;
>>
>>This is both elegant and simple.

and buggy :-(

Sorry, gang. I goofed. Peter is right. I didn't try it... on a quick
inspection it _looked_ like other versions I had recently been seeing.

I still like Randal's thought :-)

Even though the resulting sort is, sadly, imperfect.
-- --
       |\      _,,,---,,_       Vicki Brown <vlb@cfcl.com>
 ZZZzz /,`.-'`'    -.  ;-;;,_   Journeyman Sourceror: Scripts & Philtres
      |,4-  ) )-,_. ,\ (  `'-'  P.O. Box 1269  San Bruno  CA  94066
     '---''(_/--'  `-'\_) http://www.cfcl.com/~vlb  http://www.macperl.org

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org