9 Einträge, 1 Seite |
1
2
3
while (local $_ = $sth->fetchrow_hashref('NAME_uc'))
{ print join("\T", @{$_}{qw/FELD1 FELD2 FELD3/}), "\n";
}
1
2
3
4
5
6
7
8
9
10
11
my @data;
while (local $_ = $sth->fetchrow_hashref('NAME_uc'))
{ push @data, {%{$_}};
}
$data[7]->{FELD1},
"\T",
$data[5]->{FELD2},
"\T",
$data[7]->{FELD3},
"\n";
1
2
3
4
5
6
7
while($ref = $sth->fetchrow_hashref()) {
$template->param(EVENT_ID => $ref->{'event_id'});
$template->param(NAME => $ref->{'name'});
print $template->output;
};
1
2
3
4
5
# NAME_uc heißt, daß die event_id im Hash als EVENT_ID steht usw.
while($ref = $sth->fetchrow_hashref('NAME_uc')) {
$template->param($_ => $ref->{$_}) for qw/EVENT_ID NAME/;
print $template->output;
};
1
2
3
4
while($ref = $sth->fetchrow_hashref('NAME_uc')) {
$template->param($_ => $ref->{$_}) for keys %{$ref};
print $template->output;
};
1
2
3
4
5
6
7
8
9
10
11
12
13
print "Content-Type: text/html\n\n";
print $header->output;
while($ref = $sth->fetchrow_hashref()) {
$subtemplate->param(ZENSUR => $ref->{'word'});
$subtemplate->param(ERSATZ => $ref->{'replacement'});
};
$subtemplate->param(ANZEIGE => 1);
$subtemplate->param(FORMULAR => 0);
$content = $subtemplate->output();
$template->param(CONTENT => $content);
print $template->output;
print $footer->output;
exit;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
print "Content-Type: text/html\n\n";
print $header->output;
my @loop_data = ();
while($ref = $sth->fetchrow_hashref()) {
push
@loop_data,
{ ZENSUR => $ref->{word},
ERSATZ => $ref->{replacement},
ANZEIGE => 1,
FORMULAR => 0,
},
;
}
$subtemplate->param(THIS_LOOP => \@loop_data);
$content = $subtemplate->output();
$template->param(CONTENT => $content);
print $template->output;
print $footer->output;
exit;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
print "Content-Type: text/html\n\n";
print $header->output;
while($ref = $sth->fetchrow_hashref()) {
$subtemplate->param(
[ THIS_LOOP =>
{ ZENSUR => $ref->{word},
ERSATZ => $ref->{replacement},
ANZEIGE => 1,
FORMULAR => 0,
},
],
);
}
$content = $subtemplate->output();
$template->param(CONTENT => $content);
print $template->output;
print $footer->output;
exit;
9 Einträge, 1 Seite |