Help for this page

Select Code to Download


  1. or download this
    if ($opt{'c'}) {
     open CATLOG, "<$MAILLOG";
    ...
     $log = File::Tail->new( name => $MAILLOG, tail => -1);
     while (defined(my $line=$log->read)) { while_sub($line); }
    }
    
  2. or download this
    if ($opt{'c'}) {
     open CATLOG, "<$MAILLOG";
    ...
     ...while loop code here...
     } # End while loop
    close (CATLOG) if ($opt{'c'});
    
  3. or download this
     if ($opt{'c'}) {
       open MAILLOG_R, "<$MAILLOG"
    ...
     while(my $line = <MAILLOG_R>) {
      ...blah...
     }