my $match = 0; while(<INPUT>){ if($match){ print; $match = 0; } if(/<option value="PDAConfig3\.asp/i>{ $match = 1; } }
In reply to Re: how do i get the 2nd line when the 1st is matched
by johnnywang
in thread how do i get the 2nd line when the 1st is matched
by Kanishka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |