Function Parameters
Learn about Perl's parameter handling.
The array of function parameters
A function receives its parameters in a single array, @_
. Perl flattens all provided arguments into a single list when we invoke a function. The function must either unpack its parameters into variables or operate on @_
directly:
Get hands-on with 1400+ tech skills courses.