zakzebrowski has asked for the wisdom of the Perl Monks concerning the following question:

Hi all. I have posted a message to com.lang.perl.modules (link below). Since I have never posted before is it a good or bad to have no comments? Thanks. link

----
Zak
  • Comment on comp.lang.perl.modules & new module comments

Replies are listed 'Best First'.
Re: comp.lang.perl.modules & new module comments
by chromatic (Archbishop) on Oct 22, 2001 at 20:30 UTC
    It can take a while for the subscribers to respond. If there are no objections, you'll probably receive an automated response in a week or so. They seem to process namespace and alias requests in a batch.
      Awsome! Thanks for the reply... Since I have never really designed something for cpan before I didn't know.
      Zak

      ----
      Zak
Re: comp.lang.perl.modules & new module comments
by Sweeper (Pilgrim) on Oct 23, 2001 at 01:06 UTC
    You should put at least one upper-case letter in you module name. Modules with all lower-case are supposed to be pragma. Well, it is hard to imagine anybody using net::physical::packetdrop as a pragma name, but you can never know...

    So, maybe you should name your module Net::Physical::Packetdrop.

    And don't forget to read http://www.perl.com/CPAN-local/misc/cpan-faq.html#How_contribute_modules
    also (in case you haven't done already). Update tye showed me how to format URL. Thank you tye.

      Thanks -- (stupidity question - what's a pragma? required library?) At this point the software isn't ready for production. (I recently ran h2xs and made a simple test routine that says the equivilent 'hi world'.)

      ----
      Zak
        Short name pragma, long name pragmatic module.

        These are modules which change the behaviour of the Perl interpreter. For example:
        use integer;
        change arithmetic operations, (division and the like) so the results are integers. e.g.

        print 5 / 2;
        use integer;
        print 5 / 2;
        
        will print 2.5 and then 2.

        And there are the two paragmatic modules you should always use, until you feel confident with Perl:

        use warnings;
        use strict;
        
        These two pragmas will help you find your logic errors and dubious constructs.

        Unlike normal modules, pragmatic modules last until the closing parenthesis (or more acurately, until the end of the enclosing scope). Or you can explicitely revoke them with

        no integer;
        
        See Programming Perl page 136, and chapter 31.