in reply to Getting values for next array iteration when matching current
for( my $ix = 0; $ix < @ref; $ix++ ){ my $it = $ref[$ix]; if( $it =~ m/$in/i ){ print OUT $it,$ref[$ix+1]; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting values for next array iteration when matching current
by naturalsciences (Beadle) on Mar 20, 2011 at 08:58 UTC |