in reply to comp.lang.perl.modules & new module comments

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.

  • Comment on Re: comp.lang.perl.modules & new module comments

Replies are listed 'Best First'.
Re: Re: comp.lang.perl.modules & new module comments
by zakzebrowski (Curate) on Oct 24, 2001 at 19:28 UTC
    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.
        Cool. The one annoyance I have with the way perl monks was designed, if a user has the same name as the term you are looking for (eg: pragma) the search returns only the user's node. Thanks.

        ----
        Zak