in reply to Uninitialized value
You want to know if $junk is defined, why not check if defined($junk)? Handles <samp>0</samp> and <samp>''</samp> correctly, is easily readable, and explains itself.