On Thu, 3 Jul 2003 19:49:30 +0200 Ruben Montes
<[EMAIL PROTECTED]> wrote:
> I get the broken pipe message from this simple script...
>
> use DBI;
>
> my $dbh = DBI->connect('dbi:PgPP:dbname=test','','');
# A controlled shutdown is always a good idea
$dbh -> disconnect;
undef $dbh; # deallocate before global destruction
> Am I missing anything?
Mostly a lot of error checking. The contents of $DBI::errstr might be
interesting. The output from DBI->trace(4) may also shed some light on
what is happening. Search http://search.cpan.org/dist/DBI/DBI.pm for
'errstr' and 'trace' for more information and examples.
I hope you have included 'use strict;' somewhere and '-w' in the #!
line.
--
Mac :})
** I usually forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.