in reply to Question about returning array from sub
Each element of @rot_mat is a reference to another array, each of which seem tp contain three elements. Try
Cheers,
JohnGG