my $array_ref = \@array; subroutine($array_ref); # oder my $array_ref = [1,2,3]; subroutine($array_ref); # oder subroutine(\@array);