#!/usr/bin/perl use 5.010; use warnings; use strict; use utf8; use DBI; my $table = 'Table_simple'; my $dbh = DBI->connect( "DBI:CSV:" ); $dbh->do( "CREATE TABLE $table( Nachname CHAR(64), Vorname CHAR(64), Telefon INTEGER ) )" ); my $sth = $dbh->prepare( "INSERT INTO $table( Nachname, Vorname, Telefon ) VALUES(?,?,?)" ); while ( ) { chomp; my( $Nachname, $Vorname, $Telefon ) = split /,/; $sth->execute( $Nachname, $Vorname, $Telefon ); } $sth->finish; $dbh->disconnect; __DATA__ Nachname,Vorname,Telefon Kunz,Helga,123456789 Maier,Anton,987654321 Müller,Franz,