I like this idea, but I'm not so crazy about it only working for OO modules (although I understand why it does). Typically I only call new() a small number of times and usually typing the full module name doesn't bother me much.

What does bother me is typing a long module name over and over for every subroutine of a non-OO module. Of course, exporting does address this, but I find that code that makes extensive use of exported subroutines is hard to read because I have to keep bouncing up to the top of the file to figure out where anything is defined (assuming they are good programmers and explicitly imported, rather than implicitly, in which case things are completely hopeless). In cases like this, it would be nice to have a short way of referring to the subroutines, but without losing all context.


In reply to Re: Module Naming Dilemma by kscaldef
in thread Module Naming Dilemma by Ovid

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.