Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: "Redundant" ne "Bad"

by tomhukins (Curate)
on Oct 31, 2002 at 11:48 UTC ( #209393=note: print w/replies, xml ) Need Help??


in reply to Re: "Redundant" ne "Bad"
in thread the "@" indicates plural hence "s" is redundant

I would rewrite
for my $widget(@widgets){ do_somthing($widget); }
as
foreach (@widget) { do_something($_); }
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".

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2022-12-08 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?