So, in other words, you wanted DBI errors to be reported as coming from DBI and ignoring that your code is in there in the middle. This is the exact reason I hate working with Java - everything is action at a distance and you have to wade through a gazillion files to find the error. Perl reports the error where it does cause that's where the error is! Don't mess with that.

Honestly, I think you're waaaaay overthinking this. Is there some major problem that you're attempting to address? Is there something that has been going wrong that you're looking to fix? Or, is this from some "code purity" motive? Code purity is good, but not at the expense of the ability to change code safely. Everything else is second to that.


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?

In reply to Re^3: List context lost when goto selectrow_array? by dragonchild
in thread List context lost when goto selectrow_array? by roman

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.