Posted on 2005-10-02 04:33:16-07 by lunatics in response to 908
Re: Is there any way to have a footer line?
I just added a new feature in the upcoming version of Text::ASCIITable. The new subroutine is called addRowLine. And is documented as follows:
addRowLine([$row]) Will add a line after the current row. As an argument, you may specify after which row you want a line (first row is 1) or an array of row numbers. (HINT: If you want a line after every row, read about the drawRowLine option in setOptions()) Example without arguments: $t->addRow('one','two','three'); $t->addRowLine(); $t->addRow('one','two','three'); $t->addRow('one','two','three'); Example with argument: $t->addRow('one','two','three'); $t->addRow('one','two','three'); $t->addRow('one','two','three'); $t->addRow('one','two','three'); $t->addRowLine(1); # or multiple: $t->addRowLine([2,3]);
If you have any objections/ideas to this, please tell me, and I'll consider changing it :)
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.