Results 1 to 2 of 2

Thread: problems with writing a file

  1. #1

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161
    open (INFILE, "somedata.txt");
    @mydata = <INFILE>;
    close (INFILE);
    print $mydata[0];
    open (OUTFILE, ">/forumdata/$mydata[0].txt");

    why does this produce the error
    Status: 302 Found Location: http://cgi1.tripod.com/bin/error?err...0line%2040.%0A URI: http://cgi1.tripod.com/bin/error?err...0line%2040.%0A Content-type: text/html
    Razzle
    ICQ#: 31429438
    What is the difference between a raven?
    -The legs. The length is equal, especially the right one.

  2. #2
    New Member
    Join Date
    May 2000
    Posts
    15
    Probably has something to do with the Perl taint switch (/usr/bin/perl -t).
    Seems to me like it limits which directories can be written to.
    Also check directory and file permissions.

    Oreilly as updated their Perl web programming book.
    It will be released in July. They have a sample
    chapter on their web site. The chapter is on security
    and it discusses the taint feature.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width