I don't think there's one "correct" answer... If your modules mostly deal with Unicode issues (like properties), then perhaps the Unicode:: namespace might be appropriate. If your modules mostly provide regexes or extend regexes, Regexp:: does seem appropriate. If your modules provide a mix of features, but they're language-specific, then Lingua:: seems like a good place. The example you've shown seems like it might fit into Unicode::, but it also depends on the other modules in the distro.

As for exporting, if you've got a module that only exports functions named like the example you showed, then automatically exporting all of those is probably not really that bad, since they're probably unlikely to collide with existing functions. Then again, "modern" Perl modules generally don't do that so they don't flood the user's namespace, and Laurent_R is right that adding an :all tag is pretty easy:

use Exporter 'import'; our @EXPORT_OK = qw/ ... /; our %EXPORT_TAGS = ( all => \@EXPORT_OK );

(Note the use Exporter 'import'; instead of adding Exporter to @ISA, this prevents your module from inheriting several other Exporter functions and changing your module's @ISA, which may be important modules that also offer an OO interface.)


In reply to Re: Namespace/advice for new CPAN modules for Thai & Lao by Anonymous Monk
in thread Namespace/advice for new CPAN modules for Thai & Lao by Polyglot

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.