Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2009 07:18
Show Gist options
  • Save anonymous/143493 to your computer and use it in GitHub Desktop.
Save anonymous/143493 to your computer and use it in GitHub Desktop.
foreach my $sc (
sort {
$heads{$hc}{subheads}{$a}{sort} <=> $heads{$hc}{subheads}{$b}{sort}
} keys %{$heads{$hc}{subheads}}
) {
next unless scalar @{$heads{$hc}{subheads}{$sc}{data}};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment