Hi there, 

I do have one type A file, that holds about 25.000 A-ids, one per line.
Furher I have 500 type B files in a dir that hold 10-500 B-ids each, one per 
line.
All files are -T
Now i want to generate 500 type C files, corrosponding to the b files:

each B-id, that occours in a B-type file AND the A-type file should go into 
the corrosponding C-file. 

Each A id is unique in the A file, each B-id is unique in its file BUT NOT i 
all the Bfiles: each B id may occure in one or more B files.

Im lookin for a fast and memory concious way to do that.

I guess, there might be better ideas then 

foreach bfile in B-file-dir
  foreach b-id in Bfile
    foreach a-id in Afile
      print to Cfile and next Bfile if a_id eq b_id

thank a lot, wolf




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to