Help for this page

Select Code to Download


  1. or download this
    local $/ = undef;
    open(LOG, 'log_file') or die("couldn't open file");
    ...
    
    $file_counts{$file}[1] =()= $log =~ /<regexp2>/gi;
    }
    
  2. or download this
    while(<LOG>){
       if(/GET\s.*\/(\S+)\.pdf\s/i and exists $file_counts{$1}){
          $file_counts{$1}[0]++;
       }
    }
    
  3. or download this
    GET /folder1/folder2/file.pdf HTTP ..etc