http://www.perlmonks.org?node_id=1041349


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 (Saint) 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)