piece most likely doesn't do what you you think it should.$my_server_hash {$a} cmp $my_server_hash {$b} && $my_server_hash{$a}{tag} <=> $my_server_hash{$b}{tag}
$my_server_hash{$a} evaluates to a hashref, doesn't it? So cmp compares two stringified hashrefs, and that doesn't make much sense.
In reply to Re: hash sort problems
by kappa
in thread hash sort problems
by Conal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |