open(DAT, ">>".$data_file) ¦¦ die("not open file!");
print DAT "\n$last_name $first_name ,$year,$email";
close(DAT);
as you can see I am using the \n . Is there something else that I should be using, or is there a different way to do that.
thanks
Will
#!/usr/bin/perl$data_file = "foo.txt";
$last_name = "Doe"; $first_name = "Jon"; $year = 1963; $email = "jdoe\@foo\.com";
open (DAT, ">>$data_file") ¦¦ die ("not open file!");
print DAT "\n$last_name $first_name ,$year,$email";
close (DAT);