I was hoping you would be able to help me understand the following error handling code
I believe that dbh->do will retrun undef if there is an error, but what is the result of assiging an undef to a varible? I guess it must be false otherwise the or test would be passed and the die statement wouldn't happen? I thought an assignment was always true many thanksmy $rows_deleted = $dbh->do(q{ DELETE FROM table WHERE status = ? }, undef, 'DONE') or die $dbh->errstr;
In reply to understanding this database error code handling by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |