How to read line after finding a pattern?
- by Jonathan Low
i've got a
"CHANNEL(SYSTEM.DEF.SVRCONN) CHLTYPE(SVRCONN)"
"id=3"
what i want to do is to retrieve the id after i do a search on the file and found the first line.
open (CHECKFILE8, "$file");
while (<CHECKFILE8>) #while loop to loop through each line in the file
{
chomp; #take out…