in reply to DBIx::Simple hangs

Looking at it from a different angle, I would test to ensure that you can actually use DBIx::Simple, that you can connect, and that you can disconnect. I don't have Oracle, so I used DBD::SQLite in this example test. Once you've done this successfully, then you can add tests for users and passwords.
!/usr/bin/perl -slw use strict; use Test::More; BEGIN { eval { require DBD::SQLite; 1 } or plan skip_all => 'DBD::SQLite required'; plan tests => 3; use_ok('DBIx::Simple'); } ok(my $db = DBIx::Simple->connect( 'dbi:SQLite:dbname=:memory' ) or die DBIx::Simple->error); if (not defined $db) { print "Not Ok: ", $DBI::errstr; } else { print "Ok!"; } ok($db->disconnect); print "Done";

Replies are listed 'Best First'.
Re^2: DBIx::Simple hangs
by Anonymous Monk on Dec 13, 2011 at 22:24 UTC
    Thanks for the reply. I've used DBIx::Simple for a couple of years, I'd hate to have to ditch it. I don't often need or use multiple connections, and don't often fail connecting, so this is the first time I've encountered it.

    More info: when I replace DBIx::Simple with plain ole DBI, program doesn't hang when first connection is successful and second connection fails. It exits normally.