#!/usr/bin/perl -w use strict; my ($language,$src,$system) = @ARGV; die("wrapping frame not found ($src)") unless -e $src; $system = "Edinburgh" unless $system; open(SRC,$src); my @OUT = ; chomp(@OUT); #my @OUT = `cat $decoder_output`; while() { chomp; if (/^/) { s/(]+> *).*(<\/seg>)/$1$line$2/; } else { s/(]+> *)[^<]*/$1$line/; } } print $_."\n"; }