$escmode has nothing to do with being able to use print() inside [- -]. In
order to do that you have to turn on optRedirectStdout as part of your
EMBPERL_OPTIONS in your conf file.
On 14-Jun-2000 Erich L. Markert wrote:
> Try:
>
> [-
> open(FILE,"</path/file") || die "Can't open file";
> $escmode = 0; # needed for the subsequent print in "while"
> # otherwise Embperl will complain
> while(<FILE>){
> print;
> }
> $escmode = 1;
> close(FILE);
> -]
>
> Ryszard Lach wrote:
>>
>> Hi!
>>
>> I've read docs about using embperl and HTML escaping, I tried to display
>> e.g.
>> forms data (it works fine), but I still don't know, how to embedd such a
>> simple
>> code in html page:
>>
>> open(FILE,"</path/to/file");
>> while(<FILE>) {
>> print;
>> }
>>
>> Could anybody help me?
>>
>> T.I.A.
>>
>> --
>> Ryszard �ach
>> Internet Designers s.c.
>> http://www.id.pl
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> __________________________________________________________
> Mr. Erich L. Markert [EMAIL PROTECTED]
> Computer Learning Center TEL (914)422-4328
> Pace University
> 1 Martine Ave
> White Plains, New York 10606-1932
>
> Those who do not understand Unix are condemned to reinvent it, poorly.
> -- Henry Spencer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Jason Bodnar + [EMAIL PROTECTED] + Team Linux
Homer: I keep hearing this horrible irregular thumping noise.
Pump Jockey:
It's your heart. And I think it's on its last thump.
Homer: Whew, I was afraid it was my transmission.
Homer's Triple Bypass
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]