Help for this page

Select Code to Download


  1. or download this
    while (<>) { @_ = split; $wc += @_ }
    print "counted $wc white-space-delimited tokens\n";
    
  2. or download this
    open (NETSTATS,"$input_file");
    $/ = "\nnet '";
    ...
        }
        # ....
    }
    
  3. or download this
        for my $field ( @field_names ) {
            if ( s/.*?\s$field:\s+([\d.]+)//s ) {
                $field_val{$field} = $1;
            }
        }