Search notes:

Perl module Text::ASCIITable

use warnings;
use strict;

use Text::ASCIITable;

my $table = Text::ASCIITable->new({ headingText => 'Title (headingText)' });

$table->setCols('Col one', 'Col two', 'Col three');

$table->addRow('Foo', 'abc defgh ijk',  11.11 );
$table->addRow('Bar', 'pqrst'        ,  22.222);
$table->addRow('Baz', 'uvw xyz'      , 222.3  );

$table->addRowLine();

$table->addRow('FBB' ,'lomdi barra'  ,   22   );

print $table;

#  Prints
#
# .-------------------------------------.
# |         Title (headingText)         |
# +---------+---------------+-----------+
# | Col one | Col two       | Col three |
# +---------+---------------+-----------+
# | Foo     | abc defgh ijk |     11.11 |
# | Bar     | pqrst         |    22.222 |
# | Baz     | uvw xyz       |     222.3 |
# +---------+---------------+-----------+
# | FBB     | lomdi barra   |        22 |
# '---------+---------------+-----------'
#
Github repository PerlModules, path: /Text/ASCIITable/script.pl

See also

Perl modules

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759391072, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/Text/ASCIITable/index(70): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78