The way a hash is structed can always vary, it can be a hash of a hash of an array or whatever. And for every different struct of a hash there needs to be a different implementation of turning it into a two dimensional array.
Is there a general way of converting a hash into an array? Such that i could say, for instance, first key becomes column 0, second key column 1 etc.
Example from comments:
$distangle{some_distance}{some_angle}=();
now I want to convert that hash of hashes into an ordinary two dimensional array @distangle=(some_distance,some_angle)
.
That's a method, then tomorrow I have some different form of a hash I also need to convert to a two dimensional array.