The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

DBIx::XHTML_Table

Create HTML tables from SQL queries.

Installation

Classic CPAN installation:

perl Makefile.PL
make
make test
make install

Synopsis

use DBIx::XHTML_Table;

# database credentials - fill in the 'blanks'
my @creds = ($data_source,$usr,$pass);

my $table = DBIx::XHTML_Table->new( @creds );
$table->exec_query(q(
    select foo from bar
    where baz='qux'
    order by foo
));

print $table->output;

# stackable method calls:
print DBIx::XHTML_Table
    ->new( @creds )
    ->exec_query( 'select foo,baz from bar' )
    ->output;

Documentation

Author

Jeff Anderson

See source POD for license and copyright information.