Help for this page

Select Code to Download


  1. or download this
    open( IN, '<', 'test.txt' ) or die "Couldn't open infile.\n$!";
    open( OUT, '>', 'test.out' ) or die "Couldn't open outfile.\n$!";
    
  2. or download this
    # after your substitution...
    print $_;
    print OUT $_;