Multiple choice technology programming languages

Which of the following will call a subroutine named "mom"?

  1. &mom

  2. $mom
  3. mom$
  4. %mom%

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Perl, subroutines can be called using the ampersand (&) prefix followed by the subroutine name, such as &mom. Although modern Perl allows calling subroutines without the ampersand, &mom remains a valid syntax.