> If you're writing to the file, shouldn't you use '>'?
> open FILEHANDLE, '>file.txt' or die $!;
>
Yes, of course, you should !!
>
> ----- Original Message -----
> From: "Gerald Richter" <[EMAIL PROTECTED]>
> To: "Gavin Spomer" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 26, 2000 23:18
> Subject: Re: File IO with Embperl
>
>
> > >
> > > I STILL can't do any file I/O w/ embperl. :( Why
> > > doesn't the following code work?
> > >
> > > <html>
> > > <head>
> > > <title>embperl file I/O</title>
> > > </head>
> > > <body>
> > > [-
> > > open(FILEHANDLE, "file.txt");
> > > print FILEHANDLE "some text";
> > > close(FILEHANDLE);
> > > -]
> > > </body>
> > > </html>
> > >
> > > I don't get any errors but I don't get anything
> > > output to my file either. What gives?
> > >
> >
> > The code is ok, I guess you have an permission problem. The file, or if
> the
> > file doesn't exist the directory, must be writeable by the user Apache
> runs
> > as. In doubt make it worldwriteable for testing
> >
> > Gerald
> >
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]