Created
September 23, 2014 08:05
-
-
Save kikumoto/4be2d7633b83292bd642 to your computer and use it in GitHub Desktop.
perl_entrance_score_1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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