develooper Front page | perl.perl5.porters | Postings from November 2000

Re: Plan to try again with Carp

Thread Previous | Thread Next
Wolfgang Laun
November 27, 2000 05:11
Re: Plan to try again with Carp
Message ID:
Ben Tilly wrote:
> However having the code
> already structured in terms of A "trusts" B will make
> any proposed mechanism for tweaking much easier to implement.

Agreed: a structure handling "trust" due to inheritance
should handle additional relations easily.

> Cheers,
> Ben
> PS Something that I am wondering at.  I often personally use
> "confess" when "croak" should do because I find it useful
> to get the arguments to the current function call.  Would it
> be a bad idea to have the short message have added the
> current arguments?  That would have saved me a lot of
> headaches in the past.

Isn't this what -MCarp=verbose is supposed to do for you?
"...force Carp to treat a croak as a confess and a carp
as a cluck across all modules..."


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About