in reply to Re: printing an array with references in it
in thread printing an array with references in it
foreach my $sub_ref (keys %test_procs){ foreach(@procs){ print "$test_procs{$sub_ref}\n" if $sub_ref eq $_; } }
This could be:
foreach(@procs){ print "$test_procs{$_}\n" if $test_procs{$_}; #If it's defined. }
|
---|