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


In reply to Re^2: is Carp::longmess deprecated? by Anonymous Monk
in thread is Carp::longmess deprecated? by kgoess

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.