Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by hippo (Deacon)
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 browsing the Monastery: (8)
As of 2014-07-23 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (131 votes), past polls