weatherboy
Programmer
Trying to set up a flat-file database, and each time I append to it, the info is added twice. Here's the code:
# test if the 'save' button was clicked;
if($note_adder eq "SAVED"{
open(DAT, ">>$data_file" || die("FAILED: $!"
print DAT "$into1\|$time0\|$info2\|$info3\n";
close (DAT);
}
# test if the 'save' button was clicked;
if($note_adder eq "SAVED"{
open(DAT, ">>$data_file" || die("FAILED: $!"
print DAT "$into1\|$time0\|$info2\|$info3\n";
close (DAT);
}