Problem #1:
@file=<INFILE>; [download]
reads the entire file, so the subsequent
while(<INFILE>) [download]
will exit immediately.
In reply to Re: isolating strings by ikegami in thread isolating strings by dhudnall