Help for this page

Select Code to Download


  1. or download this
    a.pl:
    @in = <STDIN>;
    ...
        print "from perl script: ", $_;
    }
    
  2. or download this
    open(DATA, "<", "ex902.pl");
    @in = <DATA>;#read in as array
    ...
    open(DATA1, ">", "data.txt");
    print DATA1 @in;#flush the whole array out
    close(DATA1);