Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: why need my in a foreach loop?

by JavaFan (Canon)
on Nov 28, 2010 at 12:08 UTC ( #874095=note: print w/ replies, xml ) Need Help??

in reply to why need my in a foreach loop?

In the old days of perl5,

foreach my $var (LIST) { .. }
was a syntax error. You had to write:
my $var; foreach $var (LIST) { .. }
or use a package variable, as pointed out earlier in this thread.

I remember the days that

foreach my $var (LIST) { .. }
was actually seen as progress...

Comment on Re: why need my in a foreach loop?
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-10-09 13:06 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (242 votes), past polls