Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Index number repeating in for loop

by hdb (Monsignor)
on Jun 28, 2013 at 21:27 UTC ( #1041349=note: print w/replies, xml ) Need Help??


in reply to Index number repeating in for loop

You are confusing assignment and comparison.



Replies are listed 'Best First'.
Re^2: Index number repeating in for loop
by LanX (Bishop) on Jun 28, 2013 at 21:33 UTC
    > You are confusing assignment and comparison.

    to be precise compare eq vs == vs =

    see perlop#Equality Operators and perlop#Assignment Operators

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041349]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-11-17 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (272 votes). Check out past polls.

    Notices?