why doesn't this code work?
$TextFile = "script.pl"; use Cwd; chdir("$ENV{DOCUMENT_ROOT}/some_directory") or die $!; my $dir = getcwd; open (DAT,">${dir}${TextFile}") or die $!; print DAT ("$ENV{DOCUMENT_ROOT}/cgi_bin/$text\n") or die $!; close(DAT) or die $!;
There's no server error, but the file is not written to another directory. Lisa.
In reply to output to another directory by wolverina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |