Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Plural variable naming (or not?)

by ChOas (Curate)
on Mar 19, 2002 at 11:15 UTC ( #152711=note: print w/ replies, xml ) Need Help??

in reply to Plural variable naming (or not?)


I have have often thought about the same thing, and now I only use non plurals (sorry, lack of English)

One question:
If you wish to apply the entire list (eg: foreach (@fields) { ... })
You must name you array @fields.

I`m not sure why you say that...

I think there is nothing wrong with saying "for each field do yadayadayada"
e.g  foreach(@field)

Nice to know I`m not the only one thinking about all that stuff :)



print "profeth still\n" if /bird|devil/;

Comment on Re: Plural variable naming (or not?)
Select or Download Code
Replies are listed 'Best First'.
Re: Re: Plural variable naming (or not?)
by simon.proctor (Vicar) on Mar 19, 2002 at 11:34 UTC
    foreach my $field (@fields)

    Assuming of course you don't want to just stick with $_ :)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2016-02-07 00:14 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (238 votes), past polls