Re: Sorting Lists???
Re: Sorting Lists???
- Subject: Re: Sorting Lists???
- From: Richard Simms <email@hidden>
- Date: Sat, 22 Mar 2003 23:16:29 -0500
At 10:21 pm +0000 22/3/03, John Delacour wrote:
set ls to "5,e,4,d,2,c,3,a,1,b,10,f,9,g,8,h,7,i,6,j"
do shell script "perl -e '$list = qq~" & ls & "~ ;
%hash = split q~,~, $list ;
@values = sort {$a cmp $b} values %hash;
for $key (sort {$a <=> $b} keys %hash) {
print qq~$key $values[$i]$/~ ;
++$i
}'"
Could I get this to work using MacPerl in OS 9? Is yes then how?
--
Richard Simms
Many that live deserve death. And some that die deserve life. Can you
give it to them? Then do not be too eager to deal out death as
judgement. For not even the very wise can see all ends.
J.R.R. Tolkien "The Lord of The Rings"
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.