http://www.perlmonks.org?node_id=367184


in reply to In seach of a more elegant foreach

If you are handling matrices on a regular basis, I would use PDL. They have a bunch of modules for matrices and it might make your day a little easier.