#!/usr/bin/perl # muss das Verzeichnis für die Module angeben BEGIN{    push @INC, 'c:/apache/cgi-bin/moorland/public_html/cgi-bin/'; } use warnings; use strict; use CGI; use moorlanddb; # <-- das Modul use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use Data::Dumper; my $db = new moorlanddb() or die("Couldn't connect to Database\n"); print Dumper( $db ); # Ausgabe: # $VAR1 = bless( {}, 'DBI::db' ); my $userid = 1; print $db->get_res($userid) or $db->lasterror; # <-- Zeile 67