in reply to matrix multiplication

The easy way:
use Data::Dumper; print Dumper $z;