in reply to array element question
my @new; my $prev= ''; my $found= 0; while( <DATA> ) { if( $found ) { push @new, $prev . $_; } $found= /string1/; $prev= $_; }
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: array element question ($prev)
by Anonymous Monk on Nov 22, 2006 at 00:45 UTC |