Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Plural variable naming (or not?)

by thelenm (Vicar)
on Mar 19, 2002 at 23:53 UTC ( [id://152890]=note: print w/replies, xml ) Need Help??


in reply to Re: Plural variable naming (or not?)
in thread Plural variable naming (or not?)

Scalars should be singular, it really throws me off when they're not, $fields just really doesn't look right.

I agree with you on that one, although sometimes I will use a plural scalar if it's a named reference to an array, e.g.

$fields = [1, 2, 3];
That also helps me to remember that it's not a "normal" scalar, but that it's really referring to something plural.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-23 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found