in reply to splicing time

Why don't you just accept that the P column is going to be there and adjust the elements of the @fields array that you are use? Don't worry about getting rid of it the column, just ignore it after you've split the line.