|Perl Monk, Perl Meditation|
Designing Defaults for Devel::fileby bsb (Priest)
|on Nov 04, 2007 at 08:12 UTC||Need Help??|
bsb has asked for the
wisdom of the Perl Monks concerning the following question:
I released an alpha version of Devel::file with the intention of seeking monk preferences for the defaults. The defaults are particularly important for this module because changing them is awkward.
There's detailed documentation on the link above but the basic idea of the module is to install signal handlers that print the source code around lines giving rise to exceptions or warnings. It can be used in the command-line with -d:file although I'd like it to be safe to leave in your PERL5OPT while developing.
I asked about die/warn signal handler best practice questions already, interacting with other handlers is still a tricky business. The alpha version tries to play well with others but I'm swinging towards refusing to install if there's already another custom handler. Thoughts?
Other questions that I'm pondering are:
Should warnings be intercepted?
Other suggestions and tips welcome.
Notes on the name-d:file was a difficult choice, the other contenters included: