Skip to content

Instantly share code, notes, and snippets.

@tmn
Created December 21, 2014 16:50
Show Gist options
  • Select an option

  • Save tmn/27e5b12a5819cf34f9a9 to your computer and use it in GitHub Desktop.

Select an option

Save tmn/27e5b12a5819cf34f9a9 to your computer and use it in GitHub Desktop.
open $fh, 'words.txt';
push @sums, unpack "%32C*", (chomp $_, $_) while <$fh>;
close $fh;
print eval join '+', (sort { $a <=> $b } @sums)[-42..-1];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment