grondilu has asked for the wisdom of the Perl Monks concerning the following question:
This is a question about style. Should I use a plural when talking about an array of things?
I mean, the '@' sigil is already here to mean that I'm talking about several things. Using an 's' at the end of the variable is kind of redondant.
So, what writing style would you recommend? This one:Or this one:my @friend = qw(john steve carl); for my $friend (@friend) { say "Hello, $friend!"; }
my @friends = qw(john steve carl); for my $friend (@friends) { say "Hello, $friend!"; }
??
Back to
Seekers of Perl Wisdom