$sth=$dbh->prepare("SELECT * FROM kunden WHERE kdnummer LIKE '$kdnummer'"); $sth->execute(); $Text::Table::Tiny::COLUMN_SEPARATOR = '|'; $Text::Table::Tiny::ROW_SEPARATOR = '-'; $Text::Table::Tiny::CORNER_MARKER = '+'; $Text::Table::Tiny::HEADER_ROW_SEPARATOR = '_'; $Text::Table::Tiny::HEADER_CORNER_MARKER = '|'; # Tabellentest $rows=[]; push @$rows, [qw(kdnummer kddatum kdfirma kdstrasse kdhausnummer kdplz kdort kdland kdansprechpartner kdtelefon kdfax kdemail)]; while(@row = $sth->fetchrow_array){ @row=map{decode("UTF-8", $_)}@row; push @$rows, [@row]; } print Text::Table::Tiny::table(rows => $rows, header_row => 1); print " \n"; print "$rows \n";