in reply to foreach not a global variable?

if ( ! defined $job ) { ... }
undef() is a function that sets any variable passed to it to undef.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?