diff --git a/challenge-253/steve-g-lynn/perl/ch-2.pl b/challenge-253/steve-g-lynn/perl/ch-2.pl index 00014dc23e..5e67272a53 100644 --- a/challenge-253/steve-g-lynn/perl/ch-2.pl +++ b/challenge-253/steve-g-lynn/perl/ch-2.pl @@ -11,7 +11,7 @@ sub mysum { sub weakest_row { #input valuation - $weakest_row = length($_[0]); + local($weakest_row) = length($_[0]); foreach (@_) { ($_ =~ /^[01]+$/) || (die "Input error: $!\n"); (length($_) == $weakest_row) || (die "Not a matrix: $!\n");