Welcome to the Monastery | |
PerlMonks |
Re: Log File Parsing using "split"by McDarren (Abbot) |
on May 19, 2006 at 16:46 UTC ( [id://550539]=note: print w/replies, xml ) | Need Help?? |
Okay, first of all it would be really useful if you could add a half-dozen lines of sample data to your post. This will help people to visualise your problem a bit better.
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, PS: .... use strict
In Section
Seekers of Perl Wisdom
|
|