When this code executes, i end up with a text file that is about 500megs and keeps growing, mind you the only thing in the input file is a single sentence.
Any ideas?
Any ideas?
Code:
open (INFILE, "<merge1.txt") ||
die ("Cannot open the file 1\n");
open (OUTFILE, ">outfile.txt") ||
die ("Cannot open the file 2\n");
$line1 = <INFILE>;
$line1 = ("\U$line1\E\n");
print $line1;
while($line1 ne ""){
if ($line1 ne ""){
print OUTFILE ($line1);
}
}