Help for this page

Select Code to Download


  1. or download this
      # remove extra spaces
      my $fields = () = $summary =~ /[\s+,:]/g;
    
  2. or download this
    >perl -MYAPE::Regex::Explain -E 'say YAPE::Regex::Explain->new(q<[\s+,
    +:]>)->explain'
    The regular expression:
    ...
    )                        end of grouping
    ----------------------------------------------------------------------
    
  3. or download this
      elsif ( $fields == 10 ) {
        ( $Star, $Intf, $IHQ, $IQD, $OHQ, $OQD, $RXBS, $RXPS, $TXBS, $TXPS
    +, $TRTL )
          = split( ' ', $summary );
    
  4. or download this
      my $Star = 0;
      my $Intf = 0;
    ...
          $interface_bytes{$Track} += $TXBS;
      # ...
      }
    
  5. or download this
          $Track = join "<<-", $rec, $Intf;
          $interface_bytes{$Track} += $RXBS;
    
  6. or download this
          $interface_bytes{"$rec<<-$Intf"}+=$RXBS;
    
  7. or download this
        if    ( $Star ne "*" )  { next; }
        elsif ( $RXBS =~ /\D/ ) { next; }
        elsif ( $TXBS =~ /\D/ ) { next; }
    
  8. or download this
      } else {
        print STDERR
    "Danger Will Robinson - my sensors detect an invisible hole that may c
    +onsume you\n";
      }