Context is I am trying to parse through the lines in a log in a loop and collect 27 and 29 th fields. I want to put some counters and Logs are very large from 2 GB to 6 GB. Idea is put the mined data into some oracle control loader files and load into database

I was trying to do this

open(line,$cmdstring . ' |' )|| die "Probem .."

#$cmdstring is a invoking a C++ program which produces aforementioned logs

When I said I needed more context, I meant that I need to see the actual code block for this section of your script so that we can see how to properly implement the split approach and get rid of that messy and error prone regex.

I might be able to extract what I need from that minimal sample you gave, but it would be easier if you posted a more complete sample.