Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I keep getting PERMISSION DENIED error. File permissions are set for read and write the file is located in the cgi-bin.#!/usr/bin/perl -w use Win32::File; $counter_name="TEST SCRIPT"; $sample_file="sample.t"; print "Content-type:text/html\n\n"; print "<center><font size=1>Script Name: $counter_name</font><br><br> +<br>\n"; print "Attempt to write file: <b>$sample_file</b><br></center>\n"; print "\n\n"; open(FH, ">$sample_file") or die(print "Cannot write to $sample_file f +ile: $!\n"); print FH "I will print this to a file\n"; close(FH); print "<center><font size=1>Writing File $sample_file, complete - $co +unter_name</font><br><br><br></center>\n"; print "\n\n";
20030309 Edit by Corion : Added CODE tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and WINNT write problem
by BrowserUk (Patriarch) on Mar 09, 2003 at 01:50 UTC | |
|
Re: Perl and WINNT write problem
by meetraz (Hermit) on Mar 09, 2003 at 07:40 UTC | |
|
Re: Perl and WINNT write problem
by Cabrion (Friar) on Mar 09, 2003 at 01:02 UTC | |
by Garion72 (Initiate) on Mar 09, 2003 at 01:16 UTC | |
|
Re: Perl and WINNT write problem
by Garion72 (Initiate) on Mar 09, 2003 at 03:52 UTC | |
by BrowserUk (Patriarch) on Mar 09, 2003 at 10:54 UTC | |
by demerphq (Chancellor) on Mar 09, 2003 at 15:47 UTC | |
|
Re: Perl and WINNT write problem
by Garion72 (Initiate) on Mar 09, 2003 at 23:40 UTC |