No such thing as a small change | |
PerlMonks |
eval {} effect on DB Connectionby kprasanna_79 (Hermit) |
on Oct 19, 2005 at 06:10 UTC ( [id://501196]=perlquestion: print w/replies, xml ) | Need Help?? |
kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:
Wise Monks... I have an issue, for which i suspect the eval{} at this point. You monks have to clarify. Below is the issue. I have written a daemon which wakes up every minutes and checks for some job cards(xml files in 500 folders) and if it finds some xml files it moves the name of the card to database. I have put the db connection in eval statement. What happens is when there is some problem with db connection the script exits without handling the situtation. Even i have handled $@ at this point. But end up with vein. What my question is, IS it wise to use eval at the db connection point, or anything else there to solve the issue. Kindly Advice-Prasanna.K
Back to
Seekers of Perl Wisdom
|
|