Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: is Carp::longmess deprecated?

by tilly (Archbishop)
on Jan 18, 2011 at 23:10 UTC ( [id://883007]=note: print w/replies, xml ) Need Help??


in reply to is Carp::longmess deprecated?

YMMV, but when I see a stack backtrace, I expect it to show me what line triggered that stack backtrace. Otherwise it isn't very useful for me.

longmess does not do that, and can't for backwards compatibility reasons.

Replies are listed 'Best First'.
Re^2: is Carp::longmess deprecated?
by Anonymous Monk on Nov 18, 2011 at 19:55 UTC
    On further thought, it seems to me that my "mileage" does indeed vary. Rather I have a different notion of what the backtrace "trigger" is. In my case, the longmess call occurs in a "utility" routine referred to in $SIG{__DIE__} or $SIG{__WARN__} . I suspect that is a very common, or perhaps even typical usage. I don't want my error report to the user to mention the utility routine as it is not in fact the "trigger" of interest and in fact could be confusing. By omitting this information, longmess is doing exactly what I want. If the information about the utility routine is indeed of interest, it can be added to the message. That's what longmess is all about - letting you tailor the content, format, and destination of the trace message.

    So I think the longmess design does indeed make sense. And, as I mentioned in my previous (Anonymous) comment, would be repairable if it didn't. So please restore the documentation of this function, and get it out of this quasi-deprecated limbo.

    Thanks, -LenW

Re^2: is Carp::longmess deprecated?
by Anonymous Monk on Nov 15, 2011 at 00:25 UTC
    Would it be possible for correct behavior to be controlled by a non-default value of a variable? Wouldn't that make it backwards compatible? If that were done, could longmess be documented again? It makes me nervous to use an undocumented feature that "so far" is still available. -LenW

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://883007]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-19 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found