#!/usr/bin/env entity attrib("fd" => -1); print "hello? you there?\n"; return; } # print "'", $data, "'\n"; chomp($data); ## kill \n's $out->write("write - * '$data' *\n"); $out->attrib ("_sendq" => "_sendq - % '$data' %\n"); print "size = $size\n"; } sub openfiles { print "opening files\n"; my $infile = enode("entry.src")->attrib("text"); my $outfile = enode("entry.dest")->attrib("text"); open(INFILE, "$infile") or die "unable to open $infile"; open(OUTFILE, "$outfile"); my $src = enode("io.src"); print "-=",$src->attrib("oninput"),"=-\n"; $src->attrib("fd" => fileno(INFILE) ); enode("io.dest")->attrib("fd" => fileno(OUTFILE) ); } ]]>