in reply to Log File Parsing using "split"
Now...
"..log file has 51 fields I only need 11 fields.."
Which 11 fields? It's a bit difficult to tell from the code you posted.
Because you have @fields = split;, am I right in assuming that the data is whitespace delimited?
Other than that, I'd make no further comment without seeing some sample data, and perhaps an example of the expected output.
Cheers,
Darren :)
PS: .... use strict
|
|---|