in reply to Creating a file in a CGI script...
Basically if the file exist I wanted to create another file. This was so I did not erase anything.my $file = "data2.dat"; if (-e $file){ $file = "data3.dat"; open (FILE, ">$file") or die "Can't open the file $!\n";} else { open (FILE, ">>$file") or die "Can't open the file $!\n";}
LeGo
|
|---|