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


in reply to problem in for loop

# is this really what you meant? # this is assignment, not comparison == is comparison if ($a=$b=$c=$d=$x=$w=$y=$z = 0)
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)