hi bill,
escmode has to be set before the block with the
code containing <FILE>.  it cannot be set in the same
block.
cliff

Bill OConnor wrote:

> 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?
>
> 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>.
>

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/



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

Reply via email to