it keeps on printing the same string for all the other ID's
It is hard to imagine how a program that only has two print statements, one to STDOUT and one to a file, outside any loop "keeps on printing". Can you clarify?
In reply to Re: Looking for a string from a huge log file
by ig
in thread Looking for a string from a huge log file
by perl_req
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |