Hello, I'm new do perl for please forgive the bad coding. I'm trying to take user input for 3 questions then write the answers to a .txt file in
answer1|answer2|answer3
format but it's writing it as
answer1
|answer2
|answer3
I don't understand this as i only have one \n.
open (FILE, ">>data2.txt");
print FILE ("$name | $country | $phone\n");
close FILE;