I am newish to Perl, and am struggling with sorting an array of hashes on multiple fields. I have used the code given in Programming Perl, 3rd ed., under the sort function.
So my code:
my @s;
my @t;
sub bytitle {
$b->{TITLE} cmp $a->{TITLE}
||
$b->{SURNAME} cmp $a->{SURNAME}...