Skip to content

Commit

Permalink
bugfix ch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Lynn committed Jan 23, 2024
1 parent 2d0b846 commit 8d0a98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion challenge-253/steve-g-lynn/perl/ch-2.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8d0a98a

Please sign in to comment.