Leser: 2
|< 1 2 >| | 13 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
my $header = ${$ele->child()}{0};
# erzeuge headerzeile
foreach my $ele2 (@documentlist){
if($header eq ${$ele->name()}){
my %hash = %{$ele2->spalteninfo()};
my @sorted = sort keys %hash;
$string .= '<tr>';
for my $key(@sorted){
$string .= '<th>'.$key.'</th>';
}
$string .= '</tr>';
#PROBLEM
break;
}
}
QuoteKeywords related to the control flow of your perl program
"caller", "continue", "die", "do", "dump", "eval", "exit", "goto", "last", "next", "redo", "return", "sub", "wantarray"
1
2
3
4
5
6
7
my @arr = test();
my $molp = test();
sub test {
my @mimamu = (1, 3, 7, 9, 11);
return wantarray() ? @mimamu : $mimamu[0];
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
perl -wle'
sub test {
my $context = wantarray()
? "list context"
: defined wantarray()
? "scalar context"
: "void context";
print $context;
}
my @x = test;
my $x = test;
test;'
list context
scalar context
void context
|< 1 2 >| | 13 Einträge, 2 Seiten |