in reply to Re^3: issues displaying cgi script source?
in thread issues displaying cgi script source?

Nope just using cgi. I was somewhat confused by the error also. Also if you would please email me with the details of what you found in the submit-source script at ziation@perlskripts.com. I see the section you are talking about and again I used a two-arg-open call but the target file to write too is not passed as a cgi perameter like in the previous script. I have only looked into it for about 10 minutes but cannot see a way to modify the target file path.

www.perlskripts.com
  • Comment on Re^4: issues displaying cgi script source?

Replies are listed 'Best First'.
Re^5: issues displaying cgi script source?
by antirice (Priest) on Jul 07, 2004 at 01:10 UTC

    Try this from a directory that contains a subdirectory named review.

    my $name = "../broken.pl"; open(FILE, ">review/$name") || die "Can't write to review/$name!\n"; print FILE "Hi"; close FILE;

    Notice that it creates a broken.pl in the current directory instead of the subdirectory.

    antirice    
    The first rule of Perl club is - use Perl
    The
    ith rule of Perl club is - follow rule i - 1 for i > 1

    A reply falls below the community's threshold of quality. You may see it by logging in.