From 5f2cd32adbdb5fc2507b9e0b0ee4b6400da8c748 Mon Sep 17 00:00:00 2001 From: LoneWolfiNTj Date: Thu, 2 Feb 2023 22:55:52 -0800 Subject: Removed excess "my" from ch-2.pl --- challenge-202/robbie-hatley/perl/ch-2.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenge-202/robbie-hatley/perl/ch-2.pl b/challenge-202/robbie-hatley/perl/ch-2.pl index 2c021accaa..7fd591ddb9 100755 --- a/challenge-202/robbie-hatley/perl/ch-2.pl +++ b/challenge-202/robbie-hatley/perl/ch-2.pl @@ -62,7 +62,7 @@ for (@arrays){ # For each elevation change, decide what to do, based valley-wall state # and on whether we've reached the last elevation yet: - for ( my $idx = 1 ; $idx <= $#array ; ++$idx ){ + for ( $idx = 1 ; $idx <= $#array ; ++$idx ){ # If we're on the Left Wall of our current valley, check to see if we # just transitioned to the Right Wall: @@ -108,4 +108,4 @@ for (@arrays){ # Print results: say ''; say "Array of elevations = (@array)"; - say "Left-most widest valley = (@valley)"} \ No newline at end of file + say "Left-most widest valley = (@valley)"} -- cgit