Skip to content

Instantly share code, notes, and snippets.

View evantravers's full-sized avatar
💭
Fooling around in elixir…

Evan Travers evantravers

💭
Fooling around in elixir…
View GitHub Profile
@evantravers
evantravers / Multiplying Matrix.pl
Created February 9, 2012 04:56 — forked from anonymous/Multiplying Matrix
I believe I'm trying to access double arrays wrong. The code is not functional but I believe the logic is sound. Any advice?
#!/usr/bin/perl
my $range = 20;
my $minimum = 10;
my $random_number = (int(rand($range)) + $minimum);
my @array1 =([0..$random_number],[0..$random_number]);
my @array2 =([0..$random_number],[0..$random_number]);
my @solution =([0..$random_number], [0..$random_number]);
for(my $index1 = 0; $index1 < $random_number; $index1++){
for(my $index2 = 0; $index2 < $random_number; $index2++){