in reply to Re^6: Replace value in the text file
in thread Replace value in the text file

$table->print ($ofh,@values); print
Prints HTML representation of the table to STDOUT

http://search.cpan.org/~ajpeacock/HTML-Table-2.08a/lib/HTML/Table.pm

print $ofh $table->getTable;
getTable
Returns a string containing the HTML representation of the table.
Ibid.

Replies are listed 'Best First'.
Re^8: Replace value in the text file
by mhoang (Acolyte) on Jul 04, 2017 at 05:32 UTC

    my next question now is I have the output file, but i like to get even and odd rows in different color and setting the location of table like 10 rows down Where do I modify it in my code?

     $table -> setsetRowAlign(10, [center])
    Nirvana is Now or Never

      even and odd rows in different color

      $table->setEvenRowClass ( 'even' ); and $table->setOddRowClass ( 'odd' ); Then setup your two css classes to display what you want.

      setting the location of table like 10 rows down

      print $ofh '<hr>'x10;

        set up from where, I am not sure how to. Please give me an example.Thanks

         code
        Nirvana is Now or Never