asfor my $widget(@widgets){ do_somthing($widget); }
because the latter makes sense in English as well as Perl if you realise that Perl uses $_ to say 'it': "For each widget, do something to it".foreach (@widget) { do_something($_); }
In reply to Re: Re: "Redundant" ne "Bad"
by tomhukins
in thread the "@" indicates plural hence "s" is redundant
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |