in reply to Sorting an array of hashes

@job_data2 = sort { $a->{runs} cmp $b->{runs} } @job_data;

Dave.

Replies are listed 'Best First'.
Re^2: Sorting an array of hashes
by Scarborough (Hermit) on Jul 28, 2004 at 09:01 UTC
    Thanks I was miles out on this one. I was thinking it was going to be difficult so I made it difficult I should have remembered that "Perl makes difficult things easy"