aboutsummaryrefslogtreecommitdiff
path: root/challenge-122
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-07-25 10:48:42 +0200
committerAbigail <abigail@abigail.be>2021-07-25 10:48:42 +0200
commit3b325edd10c3ad1d3c0a686490705011a79c45b8 (patch)
treecd123d24b5d934eaec934e024c0bd5c0c7e4a766 /challenge-122
parent62818508c81af33a19e400cce9145e681920eb82 (diff)
downloadperlweeklychallenge-club-3b325edd10c3ad1d3c0a686490705011a79c45b8.tar.gz
perlweeklychallenge-club-3b325edd10c3ad1d3c0a686490705011a79c45b8.tar.bz2
perlweeklychallenge-club-3b325edd10c3ad1d3c0a686490705011a79c45b8.zip
Use same variables as other solutions
Diffstat (limited to 'challenge-122')
-rw-r--r--challenge-122/abigail/awk/ch-1.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-122/abigail/awk/ch-1.awk b/challenge-122/abigail/awk/ch-1.awk
index f801cef43b..56429b32de 100644
--- a/challenge-122/abigail/awk/ch-1.awk
+++ b/challenge-122/abigail/awk/ch-1.awk
@@ -8,4 +8,4 @@
# Run as: awk -f ch-1.awk < input-file
#
-{print ((sum += $1) / NR)}
+{print ((s += $1) / NR)}