No such thing as a small change | |
PerlMonks |
Re^2: how to deal with error messageby AltBlue (Chaplain) |
on Jul 22, 2008 at 20:26 UTC ( [id://699416]=note: print w/replies, xml ) | Need Help?? |
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; };. :) --
In Section
Seekers of Perl Wisdom
|
|