Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: matrix multiplication

by trizen (Hermit)
on Apr 21, 2012 at 18:58 UTC ( #966402=note: print w/replies, xml ) Need Help??

in reply to matrix multiplication

1. Add return @AoA; at the end the readmatrix subroutine
2. Inside of the multiply sub, change return $product; into return @{$product}; - or use an array in the first place.