i want to sort the list in the elements from the longest string length to the smallest length. is there any fast/smart way of doing it? I been converting this data into a hash and created a key based on length of the elements and sorting that ie $HASH{"6"}{"hohoho"} = 1;@elements = ("hohoho" , "work" , "gates" , "ragarnok" , ".");
20040904 Edit by castaway: Changed title from 'Sort Question'
In reply to Sort by string length by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |