http://qs321.pair.com?node_id=328405


in reply to Changing data within a matrix

The reason $matrix[i][0] didn't work is because you forgot the $ in front of i. Try it this way:

$matrix[$i][0] = undef;
strict or warnings would have tipped you off to this one.