Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Log File Parsing using "split"

by SamCG (Hermit)
on May 19, 2006 at 18:13 UTC ( #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? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2023-03-29 20:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (72 votes). Check out past polls.

    Notices?