in reply to Demonize Module, What are your thoughts?
These lines seem out of place:
use DBI; use LWP::Simple;
Documentation should be POD (perlpod).
Your accessor/mutator pattern is repeated. This is something a nice little framework could help with. See Tiny Frameworks or go all out with Moose.
It's nice to use signal names rather than numbers with kill.
In your log messages, it would be useful to include $$ (and use English, so you can say $PID instead of $$).
Instead of forcing me to subclass, allow me to pass in a code reference for run().
It'd be nice if I could tell it I don't want it to send email rather than forcing it to die by giving some bogus email address.
If you're doing logging, you might consider Log::Log4perl.
I've used Proc::Daemon for this before.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Demonize Module, What are your thoughts?
by halfbaked (Sexton) on Dec 17, 2008 at 02:06 UTC | |
by kyle (Abbot) on Dec 17, 2008 at 03:50 UTC | |
by halfbaked (Sexton) on Dec 17, 2008 at 18:18 UTC | |
by kyle (Abbot) on Dec 17, 2008 at 21:51 UTC |