Hi guys I need some help. Im creating a program that opens a log file with multiline records in it. I am wanting to split these records up and count how many records there are. I have created a program originally which finds particular records for a particular phone number. The code for that is:
while(<LOGFILE>) {
if(/^.*$PhoneNumber$/../^________________________________$/) {
}
Basically these records have the data start off with 000001 xxxxxx (xxxxxx being the telephone number) and the record ends with ______________________.
The one I want to create has a record that starts off with 000001 Call ID 000001. But using the same code it doesn't work.
Is there something different I need to do in the if statement?