Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: why need my in a foreach loop?

by TomDLux (Vicar)
on Nov 29, 2010 at 04:27 UTC ( [id://874181]=note: print w/replies, xml ) Need Help??


in reply to Re^2: why need my in a foreach loop?
in thread why need my in a foreach loop?

I love that in Perl6 loops automatically create localized variables: (may look familiar to Gabor)

for @names -> $n { say $n; }

Why not backport that feature into Perl5. Maybe only if warnings and strict and features are full on.<?p>

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-24 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found