in reply to Re: A question in grepin thread A question in grep
Do what you are asked and not something of your own invention - especially when you don't understand what you are doing!
Run exactly the code ikegami asked you to run at the point where your
my @found_files = grep (/$_jobcard_basename/,@temp); [download]
line is (replace the line with ikegami's code).