in reply to Re: (jeffa) Re: using format to align
in thread using format to align
So, if i am reading your question correctly, the answer is no. You have to iterate through each row. Now, if you are wanting to use a 'landscape' style output instead of a 'portrait' style output, you will need to do a lot more work. Formats won't transpose 2-D arrays for you, but Math::Matrix will:my ($foo,$bar,$baz); for my $row (@stuff) { ($foo,$bar,$baz) = @$row; write; } format STDOUT = @<<<<< @||||| @### $foo,$bar,$baz
Hope this helps ...use Data::Dumper; use Math::Matrix; my $a = Math::Matrix->new( [1,0,0], [1,0,0], [1,0,0], ); print Dumper $a->transpose();
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|