Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: comparing 2 files and creating third file with uncommon content

by hippo (Curate)
on Jun 18, 2014 at 10:10 UTC ( #1090283=note: print w/ replies, xml ) Need Help??


in reply to comparing 2 files and creating third file with uncommon content

I think you may be missing something in your concept of arrays. Your while loops are overwriting them on each iteration which is probably not what you want. Your foreach loops are then looping over what is actually just a single value, again not what you want.

To illustrate, you could dump the arrays after reading them in purely as a debugging exercise (ie. after the conclusion of the second while loop).

I would very strongly recommend that you use strict and warnings also.


Comment on Re: comparing 2 files and creating third file with uncommon content

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-21 19:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (175 votes), past polls