foreach(@procs){ print "$test_procs{$_}\n" if $test_procs{$_}; #If it's defined. }