diff options
author | Guillermo Ramos | 2019-07-05 23:43:12 +0200 |
---|---|---|
committer | Guillermo Ramos | 2019-07-05 23:43:12 +0200 |
commit | 20182e2e72d7bc6956faf6acc5e8d52eff64b3a9 (patch) | |
tree | fa451ff93d348e815f6502040b24dde16a66cc5b /009/ch2.pl | |
parent | d916ca90c354b29cc1b0953508e9601576a4fd1e (diff) | |
download | perlweekly-20182e2e72d7bc6956faf6acc5e8d52eff64b3a9.tar.gz |
for -> foreach, fix die interpolation msg
Diffstat (limited to '009/ch2.pl')
-rwxr-xr-x | 009/ch2.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,7 +54,7 @@ my @points = @ARGV; my $ranks = rank($rank_type, @points); # Display rankings -for my $rank (sort (keys %$ranks)) { +foreach my $rank (sort (keys %$ranks)) { my @positions = @{$ranks->{$rank}}; print "$rank. @positions\n"; } |