sub func { my ($scalar, $array_ref, $hash_ref) = @_; } func($scalar, \@array, \%hash);