Multiple choice technology programming languages

Which variable stores the parameters passed to subroutine?

  1. $@
  2. @

  3. @_

  4. $#
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The @_ array stores all parameters passed to a Perl subroutine. Each element can be accessed as $[0], $[1], etc. The other options are different special variables: $# is the last index of an array, $@ is the error message from eval, and @ alone is not a valid special variable.