in reply to Test mysql connection, and return nice message?

it never pushes that error into @errors for me though (just gives a fatal error

With RaiseError => 1 you're telling DBI->connect() to raise an exception (i.e. die) in case of an error, rather than returning undef in combination with having set an error string.

So I think you should just get rid of it...

Replies are listed 'Best First'.
Re^2: Test mysql connection, and return nice message?
by ultranerds (Hermit) on Mar 13, 2010 at 15:22 UTC
    Ah thanks - that did the trick <G>

    Thanks again!

    Andy