perl中的my ($xy,$x,$y,$N,$len)=@_是什么意思

日期:2018-04-13 21:39:59 人气:1

perl中的my ($xy,$x,$y,$N,$len)=@_是什么意思

上文下理应该是 : sub test { my ($xy,$x,$y,$N,$len)=@_; print $xy; print $x; print $y; print $N; print $len; } test ( 1,2,3,4,5 ); # 印出 "12345" @_ 是一个 sub 用来接收参数的特定数组 my 就是将变数本地化, 即是$xy,$x,$y,$N,$len 在离开 sub t
    A+
热门评论