Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Log File Parsing using "split"

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,
Darren :)

PS: .... use strict

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://550539]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found