Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl Best Practices for naming variables

by pg (Canon)
on Aug 07, 2005 at 06:11 UTC ( [id://481623]=note: print w/replies, xml ) Need Help??


in reply to Perl Best Practices for naming variables

Other than use plural for collections (array/hash), it is also nice if you can name the "iterator" wisely:

for my $friend (@friends) { #the relationship between $friend and @fri +ends are visually clear ... }

And

for my $person (keys(%phone_numbers)) { #$person clearly tells the mea +ning of the hash key $phone_numbers{$person}... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-04-18 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found