while (<DATA>){ <DATA> && <DATA> if (/3/); print; } __DATA__ 1 2 3 skipme skipme 4 5
Or in the general case:
do {<DATA> for (0..$x)} if (/3/);
where $x is the number of lines you want to skip -1
citromatik
In reply to Re: Need to skip two lines
by citromatik
in thread Need to skip two lines
by drodinthe559
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |