aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Sajid Anwar <Mohammad.Anwar@yahoo.com>2024-02-24 13:03:22 +0000
committerGitHub <noreply@github.com>2024-02-24 13:03:22 +0000
commita5b482241946bd4f2ec41e729dd9ad7b8d41824d (patch)
tree09432cb06eca985ac42d78bd53d075c17a7295fc
parentfe3812498584887a4983447d385fb112815f930c (diff)
parente022bc5dbe7cb18aa852a0d7a6a2f3d30f61e7e2 (diff)
downloadperlweeklychallenge-club-a5b482241946bd4f2ec41e729dd9ad7b8d41824d.tar.gz
perlweeklychallenge-club-a5b482241946bd4f2ec41e729dd9ad7b8d41824d.tar.bz2
perlweeklychallenge-club-a5b482241946bd4f2ec41e729dd9ad7b8d41824d.zip
Merge pull request #9632 from mattneleigh/pwc257
Pwc257
-rwxr-xr-xchallenge-257/mattneleigh/perl/ch-1.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-257/mattneleigh/perl/ch-1.pl b/challenge-257/mattneleigh/perl/ch-1.pl
index 1b0fe44a88..4c0d3487b2 100755
--- a/challenge-257/mattneleigh/perl/ch-1.pl
+++ b/challenge-257/mattneleigh/perl/ch-1.pl
@@ -46,7 +46,7 @@ sub determine_ordinal_rank{
# Build a table with the unique input integers as
# keys and their relative ordinal rank as values
- my %order_table = map(
+ my %rank_table = map(
{ $_ => $rank++ }
uniq(sort({ $a <=> $b } @ARG))
);
@@ -55,7 +55,7 @@ sub determine_ordinal_rank{
# Make a list of the ordinal ranks of each given
# integer
map(
- $order_table{$_},
+ $rank_table{$_},
@ARG
)
);