How do I use proc::daemon if Database connection is involved in script.
Lets say I want to write a daemon which polls DB inserts and if a new insert happens #dosomething.
Should I make a DB connection in while(1) in above example. I believe it will make DB connection in each iteration.
Please bless.