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, the & symbol before a subroutine name calls that subroutine. Modern Perl style often omits the & when calling subroutines.