What can you do here?
If you are a beginner, or would like to refresh your Perl programming knowledge,
you can go over the Perl tutorial.
You will find a few advanced articles too, though most of the advanced articles are available to the
subscribers of the Perl Maven Pro service only.
If you are interested to listen to or even see other Perl developers,
the Perl Maven TV Show is a collection of such interviews.
Want to make sure you don't miss any of the Perl Maven articels?
Sign up to the newsletter!
Normally, if you call a function that does not exist perl will throw an exception Undefined subroutine ... called,
however, unlike in most of the other languages you can define a default function to be called, instead of throwing
that exception. This can give us all kinds of interesting solutions.
Unlike Java, C and similar languages, Perl cannot know at compile time if a function
is going to exist when it is called. Well, actually Perl cannot even know which functions
are going to be called in a given piece of code.
Anyway this means that at run time it might happen that a none-existent function is called.
In such cases normally Perl will die.
AUTOLOAD - handling Undefined subroutines