print $a+$ref_b; #coerce reference into number Those are both scalars. Not a type conversion.