arguments for subroutine in Perl

前端之家收集整理的这篇文章主要介绍了arguments for subroutine in Perl前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

猜你在找的Perl相关文章