What i dont understand is what the $! part of the code does. What would happen in this case if the select statement does not succeed?$sth = $dbh->prepare(q{SELECT user_name, password from user where user +_name = ?}) or die("Database error: $!");
In reply to error catching by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |