in reply to Re^3: DBI: pass $dbh from a sub
in thread DBI: pass $dbh from a sub
...doesn't "die" exit the program?Not when it is in an eval block. eval is perl's way of "trying" a block of code, and die is like throwing an exception, and checking $@ afterward is like catching the exception.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: DBI: pass $dbh from a sub
by poqui (Deacon) on Jul 30, 2004 at 14:08 UTC |