-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi all, I have a small question about using a scalar reference contained in a hash : Here's an example : $a=5; %zzz = { v => \$a}; $b=$zzz->{v}; print "Before A: $a\tB: $$b\n"; $$b++; print "After A: $a\tB: $$b\n"; this code prints : Before A: 5 B: After A: 5 B: 1 while the output I expect is like in the 2nd snippet Before A: 5 B: 5 After A: 6 B: 6 $a=5; $b=\$a; print "A: $a\tB: $$b\n"; $$b++; print "A: $a\tB: $$b\n"; What's my problem with the hash ? Regards, Fred. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/PVOfgcR1FkaCE7oRAoK5AJwLaw8YoGogdoL0qIg6G7K4+hOW6gCgqsxx Xet6xC2oInRcj7sZc8No2nY= =67w9 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]