[Pkg-catalyst-maintainers] Bug#402906: libtext-asciitable-perl: printing array of arrayrefs doesn't work

Peter Eisentraut peter_e at gmx.net
Wed Dec 13 14:11:17 CET 2006


Package: libtext-asciitable-perl
Version: 0.18-1
Severity: normal

The functionality of Text::ASCIITable to print an array of arrayrefs as 
described in the documentation

     $t->addRow([
        [ 1, 2, 3 ],
        [ 4, 5, 6 ],
        [ 7, 8, 9 ],
      ]);

doesn't work reliably.  The problem is that the check for the right number of 
columns in addRow() checks the first dimension of the passed array, which is 
correct if you pass a single row but incorrect if you pass an array of rows.  
Therefore, this only happens to work if you pass less rows than columns.




More information about the Pkg-catalyst-maintainers mailing list