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