Help for this page

Select Code to Download


  1. or download this
    # Open both IN_FILE and OUT_FILE here!
    
    ...
       next unless length;
       print OUT_FILE "$_\n";
       }
    
  2. or download this
    open (INFILE, "input.txt");
    open (OUTFILE, ">output.txt");
    ...
    $_ =~ s/foo/bar/gms;
    print OUTFILE "$_\n";
    }