perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marek Matis" <marek.ma...@gmail.com>
Subject Re: Embperl2 and Execute
Date Fri, 18 Aug 2006 12:26:49 GMT
 Not work. Embperl always cache the input code.


2006/8/18, Gerald Richter <richter@ecos.de>:
>
> >
> > [-
> > @tmp = (1 .. 3);
> >
> > foreach $r (@tmp) {
> >
> > $fdat{'test_'.$r} = $r;
> > $out = "<input type='text' name='test_$r' />\n"; Execute ({
> > input => \$out }); } -]
> >
>
> Try
>
> $out = "<input type='text' name='test_$r' />\n"; Execute ({
> input => \$out, inputfile => 'foo', mtime => undef }); } -]
>
> This should tell Embperl not to cache the input code, i.e. to recompile it
> everytime, because it has changed. You can optimzie this by passing always
> the same value for inputfile, if you have the same code for input and no
> mtime.
>
> Gerald
>
>
>
> >
> > Output is:
> >
> > <input type='text' name='test_1' / value="1">
> > <input type='text' name='test_1' / value="1">
> > <input type='text' name='test_1' / value="1">
> >
> >
> > I need this:
> >
> > <input type='text' name='test_1' / value="1">
> > <input type='text' name='test_2' / value="2">
> > <input type='text' name='test_3' / value="3">
> >
> >
> >
> > Thanks
> > Marek
> >
> >
> >
> >
> >
>
>
>
> ** Virus checked by BB-5000 Mailfilter **
>
>

Mime
View raw message