Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Correct namespace of module I wrote

by izut (Chaplain)
on Mar 01, 2006 at 00:50 UTC ( #533549=perlquestion: print w/ replies, xml ) Need Help??
izut has asked for the wisdom of the Perl Monks concerning the following question:

I wrote a module that traps $SIG{__DIE__} and $SIG{__WARN__} and send an email using Mail::Mailer. I called it Carp::Mailer, but I'm not sure how name it.

Is Carp::Mailer ok, or does anybody has a best name?

Igor 'izut' Sutton
your code, your rules.

Comment on Correct namespace of module I wrote
Replies are listed 'Best First'.
Re: Correct namespace of module I wrote
by xdg (Monsignor) on Mar 01, 2006 at 01:26 UTC

    How is this related to Carp? Other than trapping signals, does it otherwise improve upon the existing Carp::Notify? Could it be done as a patch to Carp::Notify or should it be an extension, e.g. Carp::Notify::Signals?


    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      Well, I checked Carp::Notify but it modifies or add other features to Carp. Actually I don't know what 'Carp' stands for.

      The module traps $SIG{__DIE__} and $SIG{__WARN__} and sends an email to someone. It works with Carp and raw die and warn messages.

      If its usage dos not apply in Carp namespace, could you suggest another?

      Igor 'izut' Sutton
      your code, your rules.

Re: Correct namespace of module I wrote
by davido (Archbishop) on Mar 01, 2006 at 01:56 UTC

    Is it a mailer that carps? (Mailer::Carp) Or is it a carper that mails? (Carp::Mailer)

    If it's primary objective is to be a mailer, and that mailer is different from other mailers in that it carps (complains) if there's trouble, I would think Mailer::Carp is more appropriate.

    If it's a carper (complainer) that mails its complaint, it would be more appropriately named Carp::Mailer.


      It is a module will send an email to someone when it complains about a die and warn. It will send an email containing complete stack when using Carp. I think it really should be named Carp::Mailer, then.

      Thank you all.

      Igor 'izut' Sutton
      your code, your rules.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://533549]
Approved by kvale
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2016-05-01 13:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found