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()}
不起作用。
謝謝!