return an array in sub

my @a = ("1","2");

test(\@a);

sub test{

@b = @{$_[0]};

}

posted on 2018-03-21 13:50  guolongnv  阅读(100)  评论(0)    收藏  举报