my ($sort, $call, $line) = $msg =~ /^(\w)([^\|]+)\|(.*)$/;
if ($sort eq 'Z') {
kill 'TERM', $childpid;
+ exit(0);
} elsif ($sort eq 'E' || $sort eq 'B') {
;
} else {
# newline ends all lines except a prompt
$lastend = $end;
$end = "\n";
- if ($line =~ /^$call de $mycall\s+\d+-\w\w\w-\d+\s+\d+Z >$/) {
+ if ($line =~ /^$call de $mycall\s+\d+-\w\w\w-\d+\s+\d+Z >$/o) {
$end = ' ';
}
my $begin = ($lastend eq "\n") ? '' : "\n";