I am new to perl coming from VB, so please bear.
I have a log file that I need to parse. Each new record has the literal “Data Record:” in the first line. I need to split the file into two files; accepted and rejected files. Furthermore, each rejected record has the literal “Server Error” in it. Each record can span multiple lines, however, each accepted record is only three lines. How would I parse this file? In essence I could read each record into an array and search for Error. Syntactically, how is this done?