first, don't top post. read the group guidelines which are posted
regularly.
MY> Let me make it simple
MY> I have the hash keys with two information, the name and the window
MY> position separated by <->, for example:
what is a window position? this is already more complex than simple.
MY> Bc007713_220356885-220369973_intron15_hsa-mir-153-1<->1492
MY> Bc007713_220356885-220369973_intron15_hsa-mir-153-1<->1531
MY> Bc007713_220356885-220369973_intron15_hsa-mir-153-1<->1795
MY> Bc007713_220356885-220369973_intron15_hsa-mir-153-1<->23
MY> Bc007713_220356885-220369973_intron15_hsa-mir-153-1<->2918
MY> Bc007713_220356885-220369973_intron15_hsa-mir-153-1<->2921
MY> Bc007713_220356885-220369973_intron15_hsa-mir-153-1<->2925
MY> Bc007713_220356885-220369973_intron15_hsa-mir-153-1<->3304
MY> Bc007713_220356885-220369973_intron15_hsa-mir-153-1<->3305
MY> I want to sort this keys according to the name and the window
MY> position, so
MY> *<->23 should be as the first element, so how could one sort according
MY> to the first part ($1)<->($2) and the second part at the same time.
you don't have any hash i can see there. you have a list of
values. again, i refer you to the FAQ which answers this. read perldoc
-q sort and write some code and come back if you need more help. post
just the short code sample you wrote.
MY> Please send your reply also to (e-mail address removed)
you post here, you read here.
uri