print OUT "string to be printed to outputfile\n"; # or like this: $outstring = "string to be printed\n"; print OUT $outstring;