Implicit Ideas: The Default Array Variables

Learn about the default array variables in Perl.

Function arguments array: @_

Perl provides two implicit array variables. Perl passes arguments to functions in an array named @_. Array operations inside functions use this array by default. These two snippets of code are equivalent:

Get hands-on with 1200+ tech skills courses.