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


in reply to Re^3: How to swap rows with columns?
in thread How to swap rows with columns?

Why not just do away with the local var completely:

@a = ( [1..3],['a'..'c'],['x'..'z']);; @a = map{ [ map{ shift @$_ } @a ] } 1 .. @{ $a[0] };; print pp @a;; ([1, "a", "x"], [2, "b", "y"], [3, "c", "z"])

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.