CGI Not opening log file

I have the following CGI file. But it is not oprning the log files and it does not write in the log file .. why ?

print "Content-type: text/html\n\n";
print "<html><body><br></body></html>\n";
print "Starting";
print "123";
print LOG "-----------------------------------------------------------------------\n";
print LOG "\n";

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

use CGI::Carp qw(fatalsToBrowser);

open(LOG,">>call.log") or die "Can't open call.log because $!";

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
VarshiniAuthor Commented:
whenever i execute the file i am getting the following error.
I am using the cgi file in application ...
%1 is not a valid Win32 application.
VarshiniAuthor Commented:
i got the following error when i use
use CGI::Carp qw(fatalsToBrowser);

open(LOG,">>call.log") or die "Can't open call.log because $!";

Can't open call.log because Permission denied at
Sounds like you just need to change permission on call.log to be wide open.
VarshiniAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.