hi again,
> just out of curiosity:
> the output of the two following codesegments differs, in the way
> that in the variant with [+ +] the value of $RAC_F is the same on
> each line while in the [* *] variant the value changes as supposed.
> Is there a reason for this, or is this just because of some scope
> related technical problem?
>
Either use [* *] and Perl control structures or [- -] and Embperl control
structures, mixing both does not play well together yet. This is a know bug
and already on the TODO list to fix it.
[$ foreach $RAC_F ( sort keys %USERS ) $]
[+ ... +]
[$endforeach$]
will work.
Gerald
> ------------------
> [* foreach $RAC_F ( sort keys %USERS ) { *]
> <TR>
> <TD>
> [* print
> "$USERS{$RAC_F}{forename} $USERS{$RAC_F}{lastname}"; *]
> </TD><TD>
> <A href="infopage_view.epl?user=[*print
> "$RAC_F";*]">view</A>
> </TD>
> [* } *]
> ------------------
> [* foreach $RAC_F ( sort keys %USERS ) { *]
> <TR>
> <TD>
>
> [+$USERS{$RAC_F}{forename}+] [+$USERS{$RAC_F}{lastname}+]
> </TD><TD>
> <A href="infopage_view.epl?user=[+"$RAC_F"+]">view</A>
> </TD>
> [* } *]
> ------------------
>
> Andre
>
> btw: Gerald, thanks again for your quick help with that reordering
> problem, I was able to fix my page in few minutes
>