I am trying to print "$var1==$var2\n"; on one line in a text file but when I run this code it puts it on two lines and I couldnt find what I would put in there to print it all on one line. If someone could help me, I would greatly apreciate it. thanks
open (file, ">>myfile.txt");
print file "$var1==$var2\n";
close (file);