Damn cookies. *giggle*
You have several options here.
- Have the name of the file contain the date.
- Have the date as the first line of the file. If the dates are different, remove the file.
- Have the perl script accept the poll's name from a form hidden. Search only that file.