in reply to Re: Replacing warn/die with carp/croak?
in thread Replacing warn/die with carp/croak?

Forcing usage of $SIG{__WARN__/__DIE__} sounds poor. However, does it make sense to provide an option for using carp/croak vs. cluck/confess vs warn/die ?

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re^2: Replacing warn/die with carp/croak?

Replies are listed 'Best First'.
Re^3: Replacing warn/die with carp/croak?
by shmem (Chancellor) on Oct 04, 2007 at 15:19 UTC
    Sounds poor? Well, those pseudo signals exist for that purpose.

    A verbosity switch makes sense, imho.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}