|< 1 2 >| | 19 Einträge, 2 Seiten |
...$name, "members" => \@array);
QuoteMembers: <% join "", @{ $ARGS{members} }; %>
1
2
3
my @liste = ('A'..'Z'); # liste
@schleife = map { {COUNT => $_ } } @liste; # liste von hashrefs
$template->param(SCHLEIFE => \@schleife); # uebergeben
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
1
2
3
4
5
<TMPL_IF name="name" eq "BrownWolf">
Gib irgendwas aus ....
<TMPL_ELSE>
Gib was andres aus
</TMPL_IF>
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
1 2 3 4 5 6 7
if($name eq "BrownWolf") { mache dies } elsif ($name eq "test") { Mache das } else { Mache jenes }
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
1 2 3
my $name = "BrownWolf"; my @array = ("BrownWolf","pq","Ishka"); print execute_file("./templates/template.htm", "name" => $name, "members" => @array);
1
2
3
4
5
6
7
<html>
<head></head>
<body>
Name: <% $ARGS{name} %><br>
Members: <% $ARGS{members} %>
</body>
</html>
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
|< 1 2 >| | 19 Einträge, 2 Seiten |