in reply to pass by referene

You assing a reference to 100 to $a. Then you want to change the referenced object to 60 - but 100 cannot be changed. If you want the script to print 60, you do not need any reference:
$var = 100; $var = 60; print $var;