in reply to Re: looping with conditions and print newline
in thread looping with conditions and print newline

hi betterworld, thanks for the reply. I read the file as the following (read line by line). I didn't parse when I read it, but I check if the line match with pattern and put it in scalar.
open (INPUT, "<", $file) || die "File read error"; @line=<INPUT>; close INPUT;
and do while loop as per above code.