Problems? Is your data what you think it is? | |
PerlMonks |
Re: Column wise entry in text tableby Cristoforo (Curate) |
on Jan 20, 2013 at 18:18 UTC ( [id://1014315]=note: print w/replies, xml ) | Need Help?? |
The code you provided is just the sample code for Text::Table. What have you tried?
You will need to transpose the table before you submit it to Text::Table. Something like this: my @transpose = transpose(@matrix); where @matrix is your array to transpose. This requires the function 'max' from List::Util. Update: The transpose function above will not enter '0' in the array if it is in the data. It should be correct now. I'm not sure whether it is right to set a max_j as it is so, here it is without that detail.
In Section
Seekers of Perl Wisdom
|
|