script/alvis-pipeline-filter.pl untested

filter: Statementstmt 0.0% 0 / 16 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl -w
2  
3 # $Id: alvis-pipeline-filter.pl,v 1.2 2005/09/30 16:20:20 mike Exp $
4  
5 use strict;
6 use warnings;
7 use Alvis::Pipeline;
8  
9 die "Usage: $0 <readport> <spooldir> <writehost> <writeport>" if @ARGV != 4;
10 my($readPort, $spooldir, $writeHost, $writePort) = @ARGV;
11  
12 my $in = new Alvis::Pipeline::Read(port => $readPort, spooldir => $spooldir)
13 or die "can't create read-pipe for port $readPort, spooldir $spooldir: $!";
14  
15 my $out = new Alvis::Pipeline::Write(host => $writeHost, port => $writePort)
16 or die "can't create write-pipe for host $writeHost, port $writePort: $!";
17  
18 while (my $xml = $in->read(1)) {
19 $out->write($xml);
20 }