Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: About the use of the plural form for the name of variables

by choroba (Abbot)
on Nov 08, 2012 at 15:22 UTC ( #1002922=note: print w/ replies, xml ) Need Help??


in reply to About the use of the plural form for the name of variables

The main problem of the first sample is it uses the same name for the scalar and the array. Avoid such situations, whether you use plurals for arrays or not.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: About the use of the plural form for the name of variables
Re^2: About the use of the plural form for the name of variables
by grondilu (Pilgrim) on Nov 08, 2012 at 17:17 UTC

    Being able to use the same name for two variables, one array and one scalar, is something I actually like about Perl.

    One thing I don't like about programming is that I always have to think about variable names. So to me any way to reduce the need to do it is good news.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-07-25 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (169 votes), past polls