http://www.perlmonks.org?node_id=152711


in reply to Plural variable naming (or not?)

Hi!,

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 :)

GreetZ!,

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

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 $_ :)