02Aug01=======================================================================
1. correct manual and help references on accept/route and reject/route. Thanks
to ea1dav for pointing out the errors
+2. make sure that the actual line is printed in grepdbg & watchdbg esp. with
+ALL the '^' and leading space characters as they really are
30Jul01=======================================================================
1. changes to manuals to add links etc. (g0vgs)
23Jul01=======================================================================
if ($line =~ m{$string}io) {
for (@prev) {
s/([\x00-\x1f\x7f-\xff])/sprintf("\\x%02X", ord($1))/eg;
- my @line = split '\^';
- my $t = shift @line;
- print atime($t), ' ', join('^', @line), "\n";
+ my ($t, $l) = split /\^/, $line, 2;
+ print atime($t), ' ', $l, "\n";
}
@prev = ();
}
my $line = shift;
chomp $line;
$line =~ s/([\x00-\x1f\x7f-\xff])/sprintf("\\x%02X", ord($1))/eg;
- my @line = split '\^', $line;
- my $t = shift @line;
+ my ($t, $l) = split /\^/, $line, 2;
my ($sec,$min,$hour) = gmtime((defined $t) ? $t : time);
my $buf = sprintf "%02d:%02d:%02d", $hour, $min, $sec;
- print $buf, ' ', join('^', @line), "\n";
+ print $buf, ' ', $l, "\n";
}
}
exit(0);