Perl Monk, Perl Meditation | |
PerlMonks |
dbi: PrintError and RaiseErrorby perlthirst (Scribe) |
on Dec 23, 2008 at 13:04 UTC ( [id://732285]=perlquestion: print w/replies, xml ) | Need Help?? |
perlthirst has asked for the wisdom of the Perl Monks concerning the following question: Hi, From the manual page of DBI, i got the following informations PrintError:it will do a warn on an error. RaiseError: It will do a die on an error. Can any body explain, in which case we would want to warn on an error and in which case we would want to die on an error. I think we should always use RaiseError, for whatever error occurs it should do a die. If anybody have a better understanding about this, kindle explain.
Back to
Seekers of Perl Wisdom
|
|