Thread push zu arrayref (33 answers)
Opened by Froschpopo at 2008-05-10 16:42

Froschpopo
 2008-05-10 22:16
#109527 #109527
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
hmm, also das funktioniert bei mir nicht:

Das ganze ist ein HTC-Loop:
Code (perl): (dl )
1
2
3
4
while (...) {
   push @loop, { ID => $id, DATUM => $datum, SPIELER => $spieler }
}
$param{SPORTART} = \@loop;


Nun will ich später eventuell außerhalb der while nochmal Elemente hinzufügen:
Code: (dl )
$param{SPORTART}->[$#$param{SPORTART}+1]->{DATUM} = 3;

View full thread push zu arrayref