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);
but I don't really know how to approach the criterion() function
Use substring to access the parts of the key you want to sort on.
This is also a FAQ, I think.
-Jeff Lowrey