We don't bite newbies here... much | |
PerlMonks |
•Re: Plural variable naming (or not?)by merlyn (Sage) |
on Mar 19, 2002 at 14:46 UTC ( [id://152733]=note: print w/replies, xml ) | Need Help?? |
I support $singular and @plurals as a general convention. However,
for hashes, I tend to think of hashes as providing a mapping function between a
key and its value, so I frequently name it as a f() style, as in %last_name_for or %last_name_of or %has_subentries. That makes it clear to the reader that I'm holding a mapping in that hash.
-- Randal L. Schwartz, Perl hacker
In Section
Meditations
|
|