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. }
In reply to Re: Re: printing an array with references in it
by yosefm
in thread printing an array with references in it
by ozgurp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |