in reply to Simple RegEX text parser

You need to reset the TARGET file pointer for every gene, otherwise you'll be at end-of-file after the first time through the file. Try

... seek(TARGET, 0, 0); while ($target = <TARGET>) { ...

or read the TARGET data into memory, as you've done with the IF data.

Replies are listed 'Best First'.
Re^2: Simple RegEX text parser
by I-Box (Acolyte) on Dec 30, 2008 at 11:16 UTC

    Thanks a lot almut. The seek command helped...