RE: Embperl2 and Execute

2006-08-31 Thread Gerald Richter
> > This not work too. > > > > [- > >@tmp = (1 .. 3); > > > >foreach $r (@tmp) { > > $fdat{'test_'.$r} = $r; > > $out = "\n"; > > Execute ({ input => \$out, inputfile => 'foo', mtime=> $r}); > >} > > -] > > You are right, for performance reasons Embperl does not check

Re: Embperl2 and Execute

2006-08-22 Thread Marek Matis
I tried to do it in new version EmbPerl 2.2.0 but is doestnt work. Matis. 2.2.0 2006/8/21, Marek Matis <[EMAIL PROTECTED]>: This not work too. [- @tmp = (1 .. 3); foreach $r (@tmp) { $fdat{'test_'.$r} = $r; $out = "\n"; Execute ({ input => \$out, inputfile => 'foo', m

Re: Embperl2 and Execute

2006-08-21 Thread Marek Matis
This not work too. [- @tmp = (1 .. 3); foreach $r (@tmp) { $fdat{'test_'.$r} = $r; $out = "\n"; Execute ({ input => \$out, inputfile => 'foo', mtime=> $r}); } -] Marek 2006/8/18, Ben K. <[EMAIL PROTECTED]>: > This is only demo example. > I need uses Execute in loo than

Re: Embperl2 and Execute

2006-08-18 Thread Ben K.
This is only demo example. I need uses Execute in loo than how Embperl 1.3. I show the same symptom... If situations allow will this be a workaround? [- @tmp = (1 .. 3); foreach $r (@tmp) { $fdat{'test_'.$r} = $r; $out .= "\n"; } Execute ({ input => \$out }); -] Regards, Be

RE: Embperl2 and Execute

2006-08-18 Thread Gerald Richter
> > Not work. Embperl always cache the input code. > Mmmh, if you use mtime => $dummy++ So mtime change everytime? Gerald > > > 2006/8/18, Gerald Richter <[EMAIL PROTECTED]>: > > > > > [- > > @tmp = (1 .. 3); > > > > foreach $r (@tmp) { > > > >

Re: Embperl2 and Execute

2006-08-18 Thread Marek Matis
Not work. Embperl always cache the input code. 2006/8/18, Gerald Richter <[EMAIL PROTECTED]>: >> [-> @tmp = (1 .. 3);>> foreach $r (@tmp) {>> $fdat{'test_'.$r} = $r;> $out = "\n"; Execute ({> input => \$out }); } -] >Try$out = "\n"; Execute ({input => \$out, inputfile => 'foo', mtime => undef }

RE: Embperl2 and Execute

2006-08-18 Thread Gerald Richter
> > [- > @tmp = (1 .. 3); > > foreach $r (@tmp) { > > $fdat{'test_'.$r} = $r; > $out = "\n"; Execute ({ > input => \$out }); } -] > Try $out = "\n"; Execute ({ input => \$out, inputfile => 'foo', mtime => undef }); } -] This should tell Embperl not to cache the input code, i.e. to recompil

Re: Embperl2 and Execute

2006-08-18 Thread Marek Matis
This is only demo example.I need uses Execute in loo than how Embperl 1.3. 2006/8/18, Michael Smith <[EMAIL PROTECTED]>: Hi Marek,I'd suggest something a bit more like this (it's untested but hopefully you get the idea):[- @tmp=(1..3) -][$ foreach $r (@tmp) $] [$ endforeach $]Hope this helps - obv

Re: Embperl2 and Execute

2006-08-18 Thread Michael Smith
Hi Marek,I'd suggest something a bit more like this (it's untested but hopefully you get the idea):[- @tmp=(1..3) -][$ foreach $r (@tmp) $] [$ endforeach $]Hope this helps - obviosuly TMTOWTDI, but I try to avoid putting HTML in the perl sections.MichaelOn 8/18/06, Marek Matis <[EMAIL PROTECTED]>

Embperl2 and Execute

2006-08-18 Thread Marek Matis
Hi, I have problem with Execute (EmbPerl2.0r3). [-@tmp = (1 .. 3);foreach $r (@tmp) {$fdat{'test_'.$r} = $r;$out = "\n"; Execute ({ input => \$out });}-]Output is:  I need this:  Thanks Marek