Re: Ordering keys in a hash

2003-08-05 Thread Jeff Lowrey
At 04:12 PM 8/5/03 +0100, Adam Witney wrote: Hi, I have a hash with keys of the format sar0011_4 sar0203_3 sar0050_5 sar2001_1 sar0002_9 And I would like to generate a list ordered by the \d\d\d\d bit in the middle. I have this from the perl cookbook my @keys = sort {criterion()} keys(%gene_pool)

Re: Ordering keys in a hash

2003-08-05 Thread Shawn O'Donnell
At 04:12 PM +0100 8/5/03, Adam Witney wrote: And I would like to generate a list ordered by the \d\d\d\d bit in the middle. I have this from the perl cookbook my @keys = sort {criterion()} keys(%gene_pool); but I don't really know how to approach the criterion() function The criterion function

Re: Encode failure in conversion from MacArabic/Farsi/Hebrew

2003-08-05 Thread Kino
On Tuesday, Aug 5, 2003, at 01:48 Asia/Tokyo, Dan Kogai wrote: On Thursday, Jul 24, 2003, at 14:39 Asia/Tokyo, Kino wrote: Anyway, I will make mac(Arabic|Farsi|Hebrew).ucm available BEFORE releasing the next version of Encode so I appreciate if you test >> them. I'll be very happy to test them.