Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Log File Parsing using "split"

by SamCG (Hermit)
on May 19, 2006 at 18:13 UTC ( [id://550555]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( $logfile =~ /WMS/ ) {
            $media = "wms";
    ...
    } else {
            die "Unknown file format";
    }
    
  2. or download this
    $media='wms';
    $prefix = "/usr/home/script/${media}_cust/";
    $suffix = ".$media.log";
    die "logfile name does not contain 'WMS'\n" if $logfile !~ /WMS/;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-03-28 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found