in reply to Sorting a nested hash on internal values
I think you wantforeach $job (sort { jobs{$job}{start_date} <=> $jobs{$job}{start_date}} keys %jobs) {
Also, I'm not sure the logic is correct in the /END/ section; do you really want to delete any job that has an END section? Surely instead you want, at the end, to delete any jobs that didn't have an END section ?foreach $job (sort { jobs{$a}{start_date} <=> $jobs{$b}{start_date}} keys %jobs){
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Sorting a nested hash on internal values
by Anonymous Monk on May 12, 2004 at 16:05 UTC |