in reply to Re: is Carp::longmess deprecated?
in thread is Carp::longmess deprecated?

I recall I generated custom stacktrace messages with caller.
Yeah, I could do a loop around caller() too, but it seems a shame to if there's a core module that already does the same thing.

Replies are listed 'Best First'.
Re^3: is Carp::longmess deprecated?
by kcott (Archbishop) on Nov 30, 2010 at 06:06 UTC

    I agree with not reinventing the wheel. My reference to caller() was really just in response to your question about what other people were using. I can't remember the details but do recall I needed the information in some sort of custom format and caller() was quite appropriate for that. If I wanted to capture the same information that is output by confess(), I would probably use longmess().

    -- Ken