I got a PERL cgi program, and I want to append something to a file. Here's my code: open(DATA,">>order.txt") || die("Cannot write to file"); print DATA "$order\n"; close(DATA); When I run my program I don't get any errors, but nothing gets written into order.txt. I think it might be a problem with setting Write Permissions? I'm using Apache on Windows. any help?