How should I compare Perl references?

后端 未结 0 998
眼角桃花
眼角桃花 2021-02-11 18:19

I want to check if two references point to the same object. It seems I can simply use

if ($ref1 == $ref2) { 
 # cheap numeric compare of references
 print \"ref         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题