Leser: 2
![]() |
![]() |
6 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
$xyz = shift(@$refa); # erzeugt Fehler: Modification of a read-only value attempted
das hier funktioniert ....
foreach $ref (@$refb)
{
$abc = shift(@$ref)
}
1
2
3
4
$array_refb = $sth->fetchall_arrayref;
while (my $ref = shift(@$array_refb))
{ $yxz = shift(@$ref) ... + weitere shifts }
1
2
3
4
5
6
7
8
9
$xyz = shift(@$refa); # erzeugt Fehler: Modification of a read-only value attempted
das hier funktioniert ....
foreach $ref (@$refb)
{
$abc = shift(@$ref)
}
Quote\n\nNote that the same array reference is returned for each fetch, so don't
store the reference and then use it after a later fetch. Also, the
elements of the array are also reused for each row, so take care if you
want to take a reference to an element.
![]() |
![]() |
6 Einträge, 1 Seite |