Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: RFC: transactions.pm

by Abigail-II (Bishop)
on Apr 27, 2003 at 22:45 UTC ( [id://253542]=note: print w/replies, xml ) Need Help??


in reply to •Re: RFC: transactions.pm
in thread RFC: Transactions.pm

It "cannot" begin with a lowercase letter? Why is that?

Abigail

Replies are listed 'Best First'.
•Re: Re: RFC: transactions.pm
by merlyn (Sage) on Apr 27, 2003 at 22:46 UTC
      Then pray tell me, what is a pragma? I mean, if constant.pm is a pragma, why can't a module supplying transaction support not consider itself a pragma?

      And who's deciding whether you "get to use lowercase"? I uploaded a module with an all lowercase name in the past, and noone stepped forward with a big "We don't allow you to do that, nanananana" sign. Perl, CPAN and PAUSE all handle it fine.

      Abigail

      Those are reserved for pragmata.

      Not reserved. They're used for pragmata, but not reserved.

      If you're not a P5P patch generating person, you don't get to use lowercase. {grin}

      Anyone can have lc'ed module names. For pragma-ish modules, it's a good idea to use lowercase module names. load, forks and my own again are well chosen names, in my opinion.

      Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

        Not reserved. They're used for pragmata, but not reserved.
        perlmodlib.pod and perlstyle.pod:
        "Perl informally reserves lowercase module names for 'pragma' modules like integer and strict."
        perltoot.pod:
        "You can look at other object-based, struct-like overrides of core functions in the 5.004 release of Perl in File::stat, Net::hostent, Net::netent, Net::protoent, Net::servent, Time::gmtime, Time::localtime, User::grent, and User::pwent. These modules have a final component that's all lowercase, by convention reserved for compiler pragmas, because they affect the compilation and change a builtin function."

        "Reserved by convention" is arguably a contradiction, but it looks like lower case names are OK as long as you use a namespace that starts with upper case - say for example DBIx:: :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://253542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found