- or download this
sub getmatrix {
my $what = shift;
...
}
return @matrix;
}
- or download this
sub checkmatrix {
my $rowlength = @$_[0];
...
$rowlength == @$_ or die "Number of columns was not consistant!\n"
+;
}
}
- or download this
sub getdimen {
my $rows = @_; # get number of rows
my $cols = @$_[0]; # get number of elems in first row
return ($rows,$columns);
}
- or download this
sub getproduct {
my ($aref, $bref) = @_;
...
}
return @product;
}