Update: Or, instead of having the die command in your subroutine (which may be troublesome if you plan to call the subroutine more than once) you can use or sendmail() and die; rather than just sendmail();
DBI->connect(...) or sendmail() and die; would mean to die whenever the connection is successful ;-)
I guess you meant DBI->connect(...) or do { sendmail(); die; };. :)
--
altblue.
In reply to Re^2: how to deal with error message
by AltBlue
in thread how to deal with error message
by 2007fld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |