Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Constant names come into conflict with Perl style?

by Snigwel (Sexton)
on Feb 08, 2007 at 21:21 UTC ( [id://599113]=note: print w/replies, xml ) Need Help??


in reply to Constant names come into conflict with Perl style?

From the camel, 3rd Ed. p.218:

"Perl doesn't force a particular capitalization style on your subroutine names. However, one loosely held convention is that functions called indirectly by Perl's runtime system (BEGIN, CHECK, INIT, END, AUTOLOAD, DESTROY...)are in all capitals, so you might want to avoid using that style. (But subroutines used for constant values are customarily named with all caps too. That's okay. We hope...)"

I tried arguing with a camel twice - the second time the excuse of curiosity invalidated, leaving stupidity as the only explanation...
  • Comment on Re: Constant names come into conflict with Perl style?

Replies are listed 'Best First'.
Re^2: Constant names come into conflict with Perl style?
by dmitri (Priest) on Feb 08, 2007 at 22:25 UTC
    Beautiful! This answers my question to the 't'.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-23 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found