Help for this page

Select Code to Download


  1. or download this
    Arrays and slices are interpolated into double-quoted
    strings by joining the elements with the delimiter 
    specified in the $" variable($LIST_SEPARATOR if 
    "use English;" is specified), space by default.
    
  2. or download this
    my @results = grep( /@matches/, @netstat );
    
  3. or download this
    my @results = grep(/invalid headers packets dropped/, @netstat);
  4. or download this
    foreach my $match (@matches) {
        my @results = grep /$match/, @results;
        print @results;
    }