in reply to Problems writing to an external file

Looks like there's an extra space between the > and "$filename" in the open statement.

Try removing that and see if it fixes it. Change: open(TEST, "> $filename") || &ErrorMessage( Can't open the file to save content"); to: open(TEST, ">$filename") || &ErrorMessage( Can't open the file to save content"); EDIT: tilly informed me that the space is, in fact, preferred style. Ooops.

Replies are listed 'Best First'.
Re: Re: Problems writing to an external file
by Bobcat (Scribe) on Nov 13, 2001 at 09:44 UTC
    After struggling, it appears to be a directory permission problem. This begs the question, is "-w" broken on Win32 Perl?