您的位置:首页 > 其它

arguments for subroutine in Perl

2013-12-02 17:15 204 查看
Perl automatically stores the paremeter list in the special array variable named @_ for the duration of the subroutine. The subroutines can get the number of arguments and the value of those arguments. $_[0], $_[1] ...., they
are different from $_ (almost used in foreach circulation), the former one is array and the last one is scalar.

my $arguments; #private variables
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐