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
In reply to Re: Testing a DB connect() or die()
by NetWallah
in thread [SOLVED]: Testing a DB connect() or die()
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |