关闭

arguments for subroutine in Perl

标签: perl
320人阅读 评论(0) 收藏 举报
分类:

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

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:187550次
    • 积分:3225
    • 等级:
    • 排名:第11053名
    • 原创:107篇
    • 转载:230篇
    • 译文:0篇
    • 评论:2条
    文章分类