Implicit Ideas: The Default Array Variables
Learn about the default array variables in Perl.
We'll cover the following
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 1400+ tech skills courses.