spewn
Programmer
- May 7, 2001
- 1,034
i have the following code:
it works, but it only will print two lines.
this is assuming that the $val1,$val2 and $val3 are dynamic...
any ideas? i think it has something to do with the \n...
- g
Code:
$cfile = "updatefile.csv";
open (COUNTER, "$cfile");
$count = <COUNTER>;
close (COUNTER);
if ($count eq '') {
$count = qq{Field1,Field2,Field3,\n};
}
$count = $count.qq{$val1,$val2,$val3,\n};
open (COUNTER, ">$cfile");
print COUNTER ("$count");
close (COUNTER);
it works, but it only will print two lines.
this is assuming that the $val1,$val2 and $val3 are dynamic...
any ideas? i think it has something to do with the \n...
- g