http://qs321.pair.com?node_id=18778

damian has asked for the wisdom of the Perl Monks concerning the following question:

i'm writing a simple shopping cart that writes user input into a temporary file. now my problem is that if i refresh the form for user inputs it creates a fresh new file. my file format is like this "$ENV{REMOTE_ADDR}.$ENV{HTTP_COOKIE}.txt". my questions is how can i check if a file already exists?