Perl函数的声明与调用

关于Perl中函数的声明以及调用,举例以下:函数 一、第一种使用方式:code # declare but not defined sub fun; # call function, the () is not necessary fun $arg; # ok fun($arg); # ok # define the function sub fun { //do somethi
相关文章
相关标签/搜索