• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 怎樣一次打印多個文件

    發表于:2007-07-04來源:作者:點擊數: 標簽:
    如果你僅僅想一次打印多個文件,你可以這樣做: for $fh (FH1, FH2, FH3) { print $fh whatever\n } 連接一個到多個文件句柄的最簡單的方法是使用tee(1)程序(如果你有的話),讓它來處理復雜的事情。 open (FH, | tee file1 file2 file3); 甚至這樣寫: # m
    如果你僅僅想一次打印多個文件,你可以這樣做:
         for $fh (FH1, FH2, FH3) { print $fh "whatever\n" }
    連接一個到多個文件句柄的最簡單的方法是使用tee(1)程序(如果你有的話),讓它來處理復雜的事情。
    open (FH, "| tee file1 file2 file3");
    甚至這樣寫:
    # make STDOUT go to three files, plus original STDOUT
    open (STDOUT, "| tee file1 file2 file3") or die "Teeing off: $!\n";
    print "whatever\n" or die "Writing: $!\n";
    close(STDOUT) or die "Closing: $!\n";
    否則,你就只有自己寫個多行打印的程序了(你自己的tee程序)。你也可以使用Tom Christiansen 的程序,http://www.perl.com/CPAN/authors/id/TOMC/scripts/tct.gz 。這個程序是用perl寫的,它提供了更強大的功能。

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>