Thread Referenz zuweisen (13 answers)
Opened by bianca at 2012-12-22 12:57

GwenDragon
 2012-12-22 14:21
#164360 #164360
User since
2005-01-17
14746 Artikel
Admin1
[Homepage]
user image
$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)

View full thread Referenz zuweisen