in reply to Re^2: Sparse Matrix Multiplication Problem
in thread Sparse Matrix Multiplication Problem

You really should make friends with use strict and its cousin use warnings... With the code as given: