subroutine has the same name with build_in functions

前端之家收集整理的这篇文章主要介绍了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相关文章