$log->debug("loading output module $module");
eval "require $module";
-
+
+ # add database to arugemnts for output filter
$output->{database} = $database;
$log->debug("calling $module->new(",dump( $output ),")");
}
+ # setup input name for all output filters
+ foreach my $out ( @output_modules ) {
+ if ( $out->can('input') ) {
+ $out->input( $input_name );
+ } else {
+ $log->warn("output filter $out doesn't support input name");
+ }
+ }
+
+
foreach my $pos ( 0 ... $input_db->size ) {
my $row = $input_db->fetch || next;