Help for this page

Select Code to Download


  1. or download this
    open(TAIL, "tail -f /var/log/messages |") or die "etc";
    while (<TAIL>)
    ...
      if(/type2/) { print SUBLOG2 $_; }
      # etc
    }
    
  2. or download this
    my $sel = IO::Select->new();
    for(iterate through obj array with filenames)
    ...
        }
      }
    }