Thread Referenz zuweisen
(13 answers)
Opened by bianca at 2012-12-22 12:57
$back = $ref kopiert nicht die Inhalte sondern die Adresse!
Lass das mal laufen als Anschauung für dich: Code (perl): (dl
)
1 2 3 4 5 6 my ($ref, $back); $back = {}; $ref = {}; print $ref," ",$back, "\n"; $back = $ref; print $ref," ",$back, "\n"; //EDIT: Tippfehler in Text Last edited: 2012-12-22 14:24:48 +0100 (CET) |