perlquestion
grondilu
<p>This is a question about style. Should I use a plural when talking about an array of things?</p>
<p>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.</p>
So, what writing style would you recommend? This one:
<code>
my @friend = qw(john steve carl);
for my $friend (@friend) {
say "Hello, $friend!";
}
</code>
Or this one:
<code>
my @friends = qw(john steve carl);
for my $friend (@friends) {
say "Hello, $friend!";
}
</code>
<p>??</p>