Hi all,
I have a code which uses a hash defined like this :
$matrix[$x][$y][$z]
where x, y and z run from 0 to N (each).
Does someone know how to print all elements of "MATRIX" in a single
line (separated by a single space and all numbers formatted by %15.6F)
but looping over indexes z, y and x, respectively ?
In Fortran this is trivial :
WRITE(*,'(8000000E15.6)') (((matrix(x,y,z),x=0,N),y=0,N),z=0,N)
since the outer loop is Z, followed by Y and X.
I can't figure it out how to do the same in Perl.
Thank you in advance for any insights !
S.