in reply to isolating strings

Problem #1:

@file=<INFILE>;

reads the entire file, so the subsequent

while(<INFILE>)

will exit immediately.