my @a = ("this", "is", "a", "test"
arrayTest(@a);[/tt]
(Obscurely, you can also pass an array to a function that takes several parameters. The first element of the array is the first parameter, second the second, etc. Any remaining elements would be left for the final [array] parameter.)
If you plan to change the array or its values, you'll need to go with the array ref, though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.