December 5th, 2000, 11:23 AM
My Perl script creates files named after a form input. So if the user entered infomation and his name was fred, his datafile would be called fred.txt
But if another person called fred signs up, the file will be overwritten. Can Perl name a script 'filename1.txt' and increment the 1 each time the name is repeated?
Would appreciate any help.
December 6th, 2000, 03:51 AM
Just write everything to one line with a delimiter separating each fields and a newline n at the end of each line. On next try, fred's entry would be on the 2nd line.