Help for this page

Select Code to Download


  1. or download this
    while(1) {
        if (eof(STDIN)) {
    ...
        print;
        print '$ ';
    }
    
  2. or download this
    #!/usr/bin/perl -w
    #
    ...
    close $in;
    like(<$out>,qr/END/,"EOF in Input");
    waitpid($pid, 0);