[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: ePerl within <xtable> tags
- From: Denis Barbier <nospam@thanx>
- Date: Thu, 26 Jul 2001 22:19:47 +0200
On Thu, Jul 26, 2001 at 08:15:06PM +0100, Colin Reveley wrote:
> hi there. I'm getting the following error, which I can't figure out.
>
> I can embed perl code fine, but if I try to embed some code inside
> <xtable> tags I get an
> error (I am using wml 2.0.7 on a SuSE linux system 7.1, glibc 2.2-7)
>
> #!wml
> #use wml::fmt::xtable
>
> <xtable>
> <:
> print "hello\n";
> :>
> </xtable>
>
> gives the error:
>
> ePerl:Error: Perl parsing error (interpreter rc=255)
>
> ---- Contents of STDERR channel: ---------
> Can't find string terminator "EPERL_EOT" anywhere before EOF at
> /tmp/wml.921.tmp1.wml line 157.
> ------------------------------------------
> ** WML:Break: Error in Pass 3 (rc=74).
>
>
> can you help at all?
Hi Colin,
the problem here is that <xtable> expands into ePerl commands, which
cannot be nested. You should read wml_macros(7), then write
#use wml::std::tags
#use wml::fmt::xtable
<xtable>
(1,1)
<perl>
<perl:print: "hello\n">
</perl>
</xtable>
--
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com