Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Loop through 2 files in parallel

by sherab (Scribe)
on Nov 10, 2010 at 20:04 UTC ( [id://870670]=note: print w/replies, xml ) Need Help??


in reply to Loop through 2 files in parallel

It appears to me that you have two arrays and where something is in common, you want those elements printed with elements of only one occurance having a blank line? Just trying to figure out exactly what you're trying to do.

Replies are listed 'Best First'.
Re^2: Loop through 2 files in parallel
by rwitmer (Initiate) on Nov 10, 2010 at 20:15 UTC
    Sorry, I probably wasn't clear the first time. What I have is two very similar files, but one file is missing some lines. I want to make the files have the same number of lines, but I don't want to scroll through the two files in two different text editors, pushing enter where the lines don't match. Does that make sense? Basically, the first file has a complete list of things and the second one is missing some, but there's nothing there to show which ones are missing. I want to put in a blank line where there is something missing from the second list.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 10:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found