quoting
perldoc perlvar@ARG
@_
Within a subroutine the array @_ contains the parameters passed to that subroutine. Inside a subroutine, @_ is the default array for the array operators push, pop, shift, and unshift.
See perlsub.
Example:
Code:
my($one, $three, $five) = (1, 3, 5);
print_values($one, $three, $five);
sub print_values {
my(@values) = @_; # subroutine argument list
foreach my $val (@values) {
print "${val}\n";
}
}