my $print_next; while (my $in = <IN>){ foreach (@ref){ if ($print_next) { print OUT "$_"; undef $print_next; } $print_next = 1 if m/$in/; } } }
In reply to Re: Getting values for next array iteration when matching current
by choroba
in thread Getting values for next array iteration when matching current
by naturalsciences
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |