aboutsummaryrefslogtreecommitdiff
path: root/challenge-080
diff options
context:
space:
mode:
authorPaulo Custodio <pauloscustodio@gmail.com>2021-01-28 00:40:53 +0000
committerGitHub <noreply@github.com>2021-01-28 00:40:53 +0000
commit31e71edbc488c401e26fd11d802f3145f6eee8fa (patch)
tree8a7ed84804d12606f4e08790e4a657018c552ba1 /challenge-080
parentdbd5acc0043f19ac068a9c9a7737ed7a2a1a9cba (diff)
parent978ad5065e463bf52cd11ea13c1a2c1519a2c07b (diff)
downloadperlweeklychallenge-club-31e71edbc488c401e26fd11d802f3145f6eee8fa.tar.gz
perlweeklychallenge-club-31e71edbc488c401e26fd11d802f3145f6eee8fa.tar.bz2
perlweeklychallenge-club-31e71edbc488c401e26fd11d802f3145f6eee8fa.zip
Merge branch 'master' into 003
Diffstat (limited to 'challenge-080')
-rw-r--r--challenge-080/paulo-custodio/perl/ch-2.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/challenge-080/paulo-custodio/perl/ch-2.pl b/challenge-080/paulo-custodio/perl/ch-2.pl
index 6a87c0e855..fffbdd9ba1 100644
--- a/challenge-080/paulo-custodio/perl/ch-2.pl
+++ b/challenge-080/paulo-custodio/perl/ch-2.pl
@@ -2,7 +2,7 @@
# Challenge 081
#
-# TASK #2 › Count Candies
+# TASK #2 › Count Candies
# Submitted by: Mohammad S Anwar
# You are given rankings of @N candidates.
#
@@ -41,7 +41,7 @@ sub candies {
}
sub sum {
- my($sum, @a) = @_;
- $sum += $_ for @a;
- return $sum;
+ my($sum, @a) = @_;
+ $sum += $_ for @a;
+ return $sum;
}