3
我想创建具有类似内置推式函数功能的子例程mypush,但下面的代码无法正常工作。perl函数原型
@planets = ('mercury', 'venus', 'earth', 'mars');
myPush(@planets,"Test");
sub myPush (\@@) {
my $ref = shift;
my @bal = @_;
print "\@bal : @bal\nRef : @{$ref}\n";
#...
}