Help for this page

Select Code to Download


  1. or download this
    open OUT, ">test.txt";
    for (1 .. 1000) {
        print OUT "Hello, Perlmonks!\n" x 10;
        print -s OUT;
    }
    
  2. or download this
    open OUT, ">test.txt";
    my $fh = select OUT;
    ...
        print OUT "Hello, Perlmonks!\n" x 10;
        print -s OUT;
    }