in reply to Matrix Multiplication Problem

my @product=matrix_multiply(@matrix1,@matrix2); should be my @product=matrix_multiply(\@matrix1,\@matrix2);

Also, your comparisons are should use < instead of le. And matrix_multiply should doesn't return an array, but an array ref.


Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: Matrix Multiplication Problem
by RolandGunslinger (Curate) on Sep 02, 2004 at 18:14 UTC
    Thanks Roy, that did it!