kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: eval {} effect on DB Connection
by Fang (Pilgrim) on Oct 19, 2005 at 06:40 UTC | |
|
Re: eval {} effect on DB Connection
by pajout (Curate) on Oct 19, 2005 at 07:24 UTC |