Gracias,

I've trying to figure this out for about a day.

$escmode = 0; didn't seem to work but \<FILE> does.

I must have put the escmode = 0 in the wrong place?

-----Original Message-----
From: Luiz Fernando B. Ribeiro [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 12, 2001 3:21 PM
To: Bill OConnor
Cc: [EMAIL PROTECTED]
Subject: Re: Cannot Read a file...


Hi Bill,

Resposta a sua mensagem de quarta-feira, 12 de dezembro de 2001:

BO> Installed Embperl on Solaris 5.7 Apache 1.3.19 with File::Spec .8 
BO> (the latest File::Spec).

BO> I can seem to get a script to write a file but read never seems to 
BO> happen.

BO>         open (OUTPUT, "+< /tmp/emb.txt") || die "write failed $!";
BO>         $line = <OUTPUT>;
BO>           return $line;

BO> The <OUTPUT> always seems to be at EOF or something but open always 
BO> works.  The permissions are ok and the file is not empty and this 
BO> works fine in perl. Other things I do with Embperl seem to work.

BO> Anybody know what gives?

Try setting local $escmode = 0; inside the [- -] that your code 
is in... Embperl has some trouble to differentiate <FILE> from 
<html_tags>.


Best wishes,

Luiz Fernando B. Ribeiro
Engenho Solu��es para a Internet
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to