perl 调用按钮输出到文本框

 sub push_b4 {
 #$txt -> insert('end');
 #select $txt;

 system("expect c:\\expect.txt >expect.out");
 open (FH1 ,"<","expect.out");  
                    while (<FH1>) { 
$txt -> insert('end',$_);
  }
 }
 

原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6200329.html