Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Plural variable naming (or not?)

by FoxtrotUniform (Prior)
on Mar 19, 2002 at 16:35 UTC ( [id://152764]=note: print w/replies, xml ) Need Help??


in reply to Plural variable naming (or not?)

Like most people here, I usually name $singular, @plural. My hashes are singular if they represent a data structure, and plural if they represent a mapping.

One exception to the first rule, though, is that I'm perfectly happy to name a scalar in the plural... if it's an arrayref or an appropriate hashref.

--
:wq

Log In?
Username:
Password:

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

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

      No recent polls found