The problem is the angle brackets in the statement "<FILE>".  EmbPerl
translates them into HTML entities before passing the line off to Perl
to process.  You need to set $optRawInput=1 in a block prior to the one
that contains your while statement.  I usually make the following block
the first one in my EmbPerl file if I'm going to be doing any file I/O.

[- $optRawInput = 1 -]

Regards,
Bryan.

--
Bryan Thale
Motorola Labs, Networking and Infrastructure Research
mailto:[EMAIL PROTECTED]

Randy Nivales wrote:

> this one didn't work... why?
>
> <html><head><title>test</title></head>
> <body>
>
> [- open FILE, "/full/path/of/my/file"; -]
> [$ while ($line = <FILE>) $]
>   [+ $line +]
> [$ endwhile $]
> [- close FILE; -]
>
> </body>
> </html>


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

Reply via email to