Help for this page

Select Code to Download


  1. or download this
    example of a 3x3:
    my @m = ([0,0,0],
             [0,0,0],
             [0,0,0]);
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    }
    print "3x3 Matrix: ";
    print Dumper \@sq_matrix_3x3;
    
  3. or download this
    my @another_2D;
    for (my $x=0; $x<3; $x++)
    ...
            ];
    # print Dumper \@sq_matrix_3x3; #these both produce the same output
    # print Dumper \@another_2D;