It's trivial enough to just code this. See
perlref,
for,
open,
split,
join,
print,
close. The operator for reading from a file is to enclose the filehandle in '<' '>'. A matrix in Perl is just an array of array references, e.g.
# matrix of random numbers
my @matrix;
for my $y ( 0..9 ) {
my @row = ();
for my $x ( 0..9 ) {
push @row, 100*rand();
}
push @matrix, \@row;
}
__________________________________________________________________________________
^M Free your mind!