是什么->运算符在Perl中执行? [英] What does -> operator do in Perl?
本文介绍了是什么->运算符在Perl中执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
->是什么?箭头在Perl中执行?
Possible Duplicate:
What does the -> arrow do in Perl?
我没有Perl经验,我需要阅读一些脚本.
I do not have Perl experience and I need to read some scripts.
我找不到'->'运算符的解释.
I could not find the explanation for '->' operator.
您能解释一下'->'运算符在此行中的作用吗?
Can you explain what does '->' operator do in this line?
$sftp->doSomething( $sPerson, $sCredentials )
推荐答案
In this case, the '->' (arrow operator) indicates an object method call - the doSomething method of the the object $sftp is being called.
这篇关于是什么->运算符在Perl中执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文