6
代码一个perl的返回值:如何参考子
my $compare = List::Compare->new(\@hand, \@new_hand);
print_cards("Discarded", $compare->get_Lonly()) if ($verbose);
print_cards
预计(标量,参照数组)。
get_Lonly
返回数组。什么语法将其转换为引用,以便我可以将它传递给print_cards?例如,\@{$compare->getLonly()}
不起作用。
谢谢!