Ok I like to post something on the web via a FORM. Let supose my file is at /home/www/mydir/myfile.txt and contains some data. How can I manage through Perl to delete entire content of this file and fill it with the content of the FORM through POST action. is it possible since the file will get a 0 byte may cause problems. How can I do that only in PERL?