[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

ePerl and language-dependent output




Hi again,

I'm currently tinkering with ePerl and the multilingual features of
wml. I'm ultimately trying to make some of the ePerl output
language-dependent.

Using a construct like this


<set-var myvar="xyz">
<perl>
    my $myperlvar = qq/<get-var myvar>/;
    print "The value of myperlvar is $myperlvar\n";
</perl>


works as expected.

But when I simply enclose this into <d: ... >, like this


<d:
<set-var myvar="xyz">
<perl>
    my $myperlvar = qq/<get-var myvar>/;
    print "The value of myperlvar is $myperlvar\n";
</perl>
>


I get an ePerl error (Can't locate object method "is" via package
"xyz" at ...), and the corresponding code after pass 2 looks like
this:


[LANG_D: <:
   $perl_var1 = '';
 
    my $myperlvar = qq/xyz/;
    print The value of myperlvar is $myperlvar
;
 
 
 
   print  $perl_var1 if $perl_var1;
   $perl_var1 = '';
 
 
   _:>:]                                                                                       


I'm kind of missing the quotes in the print command :-)

Apart from the question where I made a mistake (conceptually?), what
is the best way to solve the original problem, i.e. making the output
from ePerl language-dependent? The rest of the multilingual features
of wml work fine for me, btw.

All the best,
Stephan

--
Stephan Petersen                           sp@gtt.lth.rwth-aachen.de

>-=-=-=- Visit GTT's Technical Thermochemistry Web Page at =-=-=-=-<
>-=-=-=-      http://gttserv.lth.rwth-aachen.de/gtt/       =-=-=-=-<

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com