For DBI you have to use errstr().
You can do manual error checking by using $DBI::errstr.
For Automatic error checking you have to enable PrintError =>1, RaiseError =>1.
For Other type of errors, you have to take a look at the System variables $! and if you use eval then use $@ to get the error message.
updated
Prasad
In reply to Re: Errror while execution query
by prasadbabu
in thread Errror while execution query
by habibrahman_h
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |