in reply to [SOLVED]: Testing a DB connect() or die()
Will cause "any method which results in an error will cause the DBI to effectively do a die" (From the DBI docs).RaiseError=>1
So - it dies before it can execute your "or die".
The docs suggest an "eval" to catch the "die".
...it is unhealthy to remain near things that are in the process of blowing up. man page for WARP, by Larry Wall
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing a DB connect() or die()
by stevieb (Canon) on Oct 12, 2016 at 23:23 UTC | |
|
Re^2: Testing a DB connect() or die()
by stevieb (Canon) on Oct 12, 2016 at 23:10 UTC |