in reply to sorting string

Generally the monks like to see a little effort before they are inclined to give a lot of help. However, in this case, and only because I'm kind, I will point you to here where you will find documentation for the relational operators and here where you will find documentation on sort.

One decision you need to make is wether you wish to perform a numeric sort of a string sort. You will find the <=> (space ship) is good for numeric sorting and that cmp is good for string sorting.


Perl is Huffman encoded by design.