$$$

来源:互联网 发布:旧金山旅游攻略知乎 编辑:程序博客网 时间:2024/06/16 08:18

$num1=10;
$refnum1=/$num1;
$refnum2=/$refnum1;
#the last line sets $refnum2 to the value of $refnum1 (the memory location of $num1), and not to $num1 directly.  To #dereference $refnum2 here and see the value of $num1, use:
print $$$refnum2;

原创粉丝点击