Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Loop through 2 files in parallel

by aquarium (Curate)
on Nov 11, 2010 at 04:04 UTC ( [id://870767]=note: print w/replies, xml ) Need Help??


in reply to Loop through 2 files in parallel

assuming you want any missing letter in the well defined sequence A-Z in either file to be printed as a blank line. untested
@arr1=<FILE>; @arr2=<FILE2>; for $letter(A..Z) { if(grep($letter, @arr1) or grep($letter,@arr2) { print "$letter" } print "\n"; }
the hardest line to type correctly is: stty erase ^H

Log In?
Username:
Password:

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

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

    No recent polls found