while (my $in = <IN>) { for my $i (0..$#ref) { if ($ref[$i] =~ m/$in/) { print OUT $ref[$i+1]; } } }
In reply to Re: Getting values for next array iteration when matching current
by wind
in thread Getting values for next array iteration when matching current
by naturalsciences
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |