sub myfunc { my $arrRef = shift; # do my stuff here } #### my @arr = ($var); &myfunc(\@arr); #### &myfunc(\($var));