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
相關文章
相關標籤/搜索