|
Thanks for the reply, but that didn't help.
Here's the whole script...
print "Content-type: text/html \n\n"; open (OUT1,">out1.txt"); print "Couldn't open output file (<font color=red>$!</font>), so I'm bugging out.<br>\n"; print OUT1 "testing 123 \n"; close (OUT1); exit;
I've tried about every combination I can think on the open statement, spaces, no spaces, parends, no parends, etc. The file doesn't show up in the folder.
Note, I have no path as the first line. Seems to execute with or without one, for I get the permission denied message with the error "permission denied" in red. #! /usr/local/bin/perl -w I tried the one above, even though another msg here says no path is needed for Windows Hosting.
It's either a permissions problem, or the syntax is different with ActivePerl for Windows, which is what the FAQs on netsol say is being provided. I've searched the activestate website, but can find nothing that tells me I have to do anything special.
If there were, you'd think NetSol could have that in a Perl primer, that there are differences between regular Perl and ActivePerl.
Note, I've also tried this Perl script in the cgi-bin folder, same error.
|