Help for this page

Select Code to Download


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