in reply to How do I get an array which is the logical AND of the elements of two other arrays?
Part of your problem seems to be that you want to modify the variables you're using in loops, which in my experience often has deplorable results. You might do better with skipping the part about taking the elements out, and do that once your @C array is created. Also note that your comment on line 13 begins with // instead of #, which could also give you unhappy results.
|
|---|