in reply to Problem with reading files when we have new directories

When you do the file test you probably need to prepend the directory name, unless there is a chdir hiding in there somewhere:
next unless -f "$input_directory/$job";
where / must be your OS seperator.

Phil