Multiple choice technology programming languages

Which subroutine you need to define in your package if you want to handle calls to non-existing subroutines?

  1. DESTROY

  2. AUTOHANDLE

  3. AUTOLOAD

  4. AUTOLOADER

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

AUTOLOAD is a special subroutine in Perl that gets called when an undefined subroutine is invoked. This enables dynamic method generation and graceful handling of missing methods. DESTROY (option A) is for object cleanup, and AUTOHANDLE/AUTOLOADER don't exist as special subroutines.