If you're problem is that you can't see the error message that Perl is putting out, put use CGI::Carp qw(fatalsToBrowser); under use CGI; in your code, and see if that doesn't help.
Your main problem might be with your Counter stuff; you're trying to read & write to it without telling Perl to open for both read and write. The very basic code for doing this would be something like open(COUNT, "+<../Counter/counter.txt") or die "The File could not be opened."; but you should read the docs and try it out. I suggest you start with the documentation on the open command for the details on how to make it happen, but be warned that "There be Dragons here..."
----Asim, known to some as Woodrow.
In reply to Re: Writing to a file
by Asim
in thread Writing to a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |