If you are talking about creating a new csv, then just put it there in your print statement. If you are talking about an existing csv, then read the file in and print it back out with a comma appended to the end.
open (IN, $file);
open (OUT, >$temp);
while (<IN>) {
print OUT "$_,\n";
}
close (IN);
close(OUT);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.