in reply to search pattern not terminated

It helps if you format your post properly (see Writeup Formatting Tips ) (Update OP updated without notice) and if you quote the entire output...

Unmatched ) in regex; marked by <-- HERE in m/(.*) \- \(.*) <-- HERE \ "(.*) (.*)\?(.*) HTTP/(.*)" (0-9*) (0-9*) "(.*)" "(.*)"/ at (yourcode).pl line 7. Now, I admit, counting paren_matches and so forth, it's not immediately obvious to me, either, why that occurs, but wiser heads would have had more to work on had you investigated the norms here ( How do I post a question effectively? ) before posting.