in reply to Re^3: how to get average of matrices' elements?
in thread how to get average of matrices' elements?

I did run your code. Here's the output from Data::Dump:
[[1, 0, 2, 0, 3, 0], [1, 0, 2, 0, 3, 0], [1, 0, 2, 0, 3, 0]]