One note: use constant { .. }; requires a moderately recent Perl. This has bit me in the not-to-distant past... (Just a sidenote, since it's not easy to find the error when it happens.)

I find it odd that control over whether the warning or error is verbose or not is in the caller's control and not a configuration item.

The idea is that the caller can define whether a particular message is part of 'verbose' or not, and the configuration will define whether (and possibly how) they are output. So you can ask for errors, warnings, or both, and get either short or verbose versions.

This is fairly early stages in the design on this: I've got little more than a skeleton all in all. Just enough to see how it all works, not so much I can't re-organize it if I think I want to.


In reply to Re^4: Mixing procedural and OO code, one file. by DStaal
in thread Mixing procedural and OO code, one file. by DStaal

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.