Help for this page

Select Code to Download


  1. or download this
    my $LOGFILE = "iptraf.log";
    open(LOGFILE, $LOGFILE) or die("Could not open log file.");
    foreach my $line (<LOGFILE>) {
        #chomp($line);      
    }
    
  2. or download this
    while (<$handle>) {
       # ...
    }