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]

Reply via email to