%hash = sort {scalar (split ("d",$a)) <=> scalar (split ("d",$b)) } (keys (%hash))
But it gives error saying use of implicit split to @_ is deprecated.In reply to Sorting a hash in one line by rachitmohta11
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |