in reply to Re^2: Sorting data structure
in thread Sorting data structure
I can't find the problem right now, maybe I should stare at it a while longer...for my $location (sort {$a cmp $b} keys %user_locations) { $worksheet->write($row++, $col, "$location ($user_locations{$loca +tion})", $format); my @sorted_users = sort { $users{$b}->{count} <=> $users{$a}->{count} } keys %users; for my $user (for my $user ((sort { $users{$b}->{count} <=> $users +{$a}->{count} } keys %users) { next unless $users{$user}->{suffix} eq $user_locations{$locati +on}; for (my $tmp=1; $tmp <= keys %sheet_layout; $tmp++) { $worksheet->write($row, $col++, $users{$user}->{$sheet_lay +out{$tmp}->[0]}, $format_r); } $col = 0; $row++; } $row++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Sorting data structure
by 5mi11er (Deacon) on Oct 14, 2005 at 18:55 UTC |