$ret = foo($scalar, [$arrayref, [$hashref]]); #### # The naming is obviously somewhat abstract here foo( scalar => $scalar, hashref => {...}, things => \@things );