Black-REN

好记性,不如烂笔头! Record your work !

subroutine has the same name with build_in functions

If you create a subroutine that has a name same with the build_in functions in Perl, you should add "&" when you invoke this subroutine:

for example:

sub chomp {

 print "hello";

}


&chomp;

阅读更多
文章标签: perl
个人分类: Perl
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭