in reply to how do i get the 2nd line when the 1st is matched
Here is a way,
while (<DATA>){ if (/ID=136/)######## any condition to be satisfied to print next l +ine. { my $t=<DATA>;#### do what ever u want with $t print $t; } } __DATA__ option value="PDAConfig3.asp?sid=167216582&ID=136"> i705 <option value="PDAConfig3.asp?sid=167216582&ID=116"> III <option value="PDAConfig3.asp?sid=167216582&ID=118"> IIIc
|
|---|