1
2
3
4
5
6
7
8
9
10
11
12
13
my $anzahl;
while (my @row =$sth->fetchrow_array)
{
foreach (@row)
{
$_ = "" unless defined $_;
}
my $wert = @$werte[0];
printf "$wert",@row;
++$anzahl;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
perl -wE'
use Devel::Peek;
my @rows = (
["foo","bär","baz"],
["foo","bar","baz"],
);
Dump $rows[0]->[1];
for my $row (@rows) {
printf "%-6s | %-6s | %-6s\n", @$row
}'
SV = PV(0xda5c98) at 0xda7b98
REFCNT = 1
FLAGS = (POK,pPOK)
PV = 0xdce050 "b\303\244r"\0
CUR = 4
LEN = 8
foo | bär | baz
foo | bar | baz
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
perl -wE'
use Devel::Peek;
use utf8; # strings direkt im skript werden automatisch dekodiert
binmode STDOUT, ":encoding(utf-8)";
my @rows = (
["foo","bär","baz"],
["foo","bar","baz"],
);
Dump $rows[0]->[1];
for my $row (@rows) {
printf "%-6s | %-6s | %-6s\n", @$row
}'
SV = PV(0x15a8298) at 0x15a3d28
REFCNT = 1
FLAGS = (POK,pPOK,UTF8)
PV = 0x15a10b0 "b\303\244r"\0 [UTF8 "b\x{e4}r"]
CUR = 4
LEN = 8
foo | bär | baz
foo | bar | baz
2012-10-01T09:48:38 thoss51PS - kann ich den thread irgendwie als "gelöst" markieren??