Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Log File Parsing using "split"

by ruzam (Curate)
on May 19, 2006 at 17:23 UTC ( [id://550546]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open (LOGFILE, "< $logfile") or die ("Could not open $logfile: $!");
    
  2. or download this
    $thiscust = (split /\//, $fields[4])[1];
    if ( ! $cust{$thiscust} ) {
    ...
    }
    my $fh = $cust{$thiscust};
    print $fh $_;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-03-28 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found