in reply to Directory Help

Textfile="file.htm"; use Cwd; chdir("$ENV{DOCUMENT_ROOT}/directory") || die "Can't move to /etc, err +or = $!\n"; my $dir = getcwd; open (DAT,">${dir}${TextFile}") or die $!; print DAT "$text\n" or die $!; close(DAT) or die $!;
This works fine. Lisa.

Replies are listed 'Best First'.
Re: Re: Directory Help
by Courage (Parson) on Aug 12, 2002 at 08:09 UTC
    Because you failed to run them correctly. Most probably you do not have mentioned directories

    What have you tried and what was wrong?

    Courage, the Cowardly Dog