I am a perl beginner and not sure how to do the following. I have an array ref to an array of objects and i need to sort these objects by a particular property. The object/property are called $slice->seq_region_name. This property is text: some objects will contain letters (X,Y or MT) and the others will contain numbers (normally 1 to about 30). I would like to sort the $slice objects by the seq_region_name property in the array so that the numbers come first and are sorted in ascending numerical order and the letters come next and are sorted in alphabetical order.
thanks a lotIn reply to sorting by numbers then alphabetically by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |