in reply to Use of uninitialized value for file name

It says Use of uninitialized value for $job.

Are you sure? What is the exact error message? How do you know it's not complaining about $directory_location?

BTW, there's no need to quote your variables when concatenating them. A simple $directory_location.$job will suffice.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.