my $outfile = "result.txt"; open my $OUT, ">", $outfile or die "could not open $outfile $!"; # idiomatic way to open a file for writing #### print $OUT "text to be printed to the file\n"; #### close $OUT; #### use strict; use warnings; #### #!/usr/bin/perl use strict; use warnings; # quality trimming of fastq file print "Write the window length\n"; my $kmer = ; chomp $kmer; print "Write the minimum quality score cut-off\n"; my $cut_off = ; chomp $cut_off; my $file = "lib-pool-fosmid.fastq";