if (!exists $propertyHashRef{$key}){ print "key $key exists in file $jobFile with value ". $propertyHashRef->{$key} ."\n"; return $propertyHashRef->{$key}; } else{ print "key: $key does not exist in file $jobFile\n"; }