aboutsummaryrefslogtreecommitdiff
path: root/challenge-268/robbie-hatley/perl/ch-1.pl
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-268/robbie-hatley/perl/ch-1.pl')
-rwxr-xr-xchallenge-268/robbie-hatley/perl/ch-1.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/challenge-268/robbie-hatley/perl/ch-1.pl b/challenge-268/robbie-hatley/perl/ch-1.pl
index 73353171fb..5f7860b760 100755
--- a/challenge-268/robbie-hatley/perl/ch-1.pl
+++ b/challenge-268/robbie-hatley/perl/ch-1.pl
@@ -44,6 +44,7 @@ PROBLEM NOTES:
I'll sort both arrays then subtract the second from the first. If all elements of the difference are the same,
that common value is our "magic number", otherwise return "none":
+ # Determine "magic number" (if any) for given matrix:
sub magic ($matref) {
my @row1 = sort {$a<=>$b} @{$$matref[0]};
my @row2 = sort {$a<=>$b} @{$$matref[1]};