in reply to calling all DBI wizards...
print eval { return 'Surprise!' };
You could wrap the prepare() and execute() statements in an eval block, which is much improved, and is still in the spirit of your code. You'll want to move the $@ checking, though.
|
|---|