作者qrtt1 (thinking in java)
看板perl
标题Re: [问题] 怎麽让结果重导到档案?
时间Wed Sep 28 12:17:49 2005
※ 引述《shane123 (家产有八十七亿  ﰩ》之铭言:
: 我写了一个程式
: 大致如下:
: print "..";
: print "xx";
: system("ii");
: 我执行时用 ./my.pl > temp.txt
: 可是只有 system() 的结果会重导到档案
: print() 就不会
: 请问该怎麽办呢?
: thanks!!
open FILE, ">XD";
select FILE;
print "print to file";
close FILE;
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.59.94.119