Skip to content

Instantly share code, notes, and snippets.

@kikumoto
Created September 23, 2014 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kikumoto/4be2d7633b83292bd642 to your computer and use it in GitHub Desktop.
Save kikumoto/4be2d7633b83292bd642 to your computer and use it in GitHub Desktop.
perl_entrance_score_1
my @persons = ($papix, $boolfool, $moznion, $binarian, $uzulla);
for my $person (@persons) {
my $sum = 0;
my @keys = keys %$person;
for my $key (@keys) {
if ($key eq "name" || $key eq "affiliation") {
next;
}
$sum += $person->{$key}
}
$person->{sum} = $sum;
print Dumper($person);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment