【发布时间】:2011-10-29 10:47:30
【问题描述】:
[root@ ~]$ perl -e "print 1 if blessed $a;"
1
[root@ ~]$ perl -e "print 1 if blessed $c;"
1
[root@ ~]$ perl -e "print 1 if blessed $cee;"
1
好像一直是true,版本是5.8.8。
更新
我不是以root 运行的,为了隐私,我更改了它:)
【问题讨论】:
-
当你不知道它作为 root 做什么时运行代码可能不是最好的主意!
-
您期望看到什么?
-
@Greg Hewgill,有什么
not祝福吗? -
你说的这个“
blessed”是什么? The Perl documentation has nothing on it. 你的意思是“bless”吗?
标签: perl