start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.128 SelectSaver Chapter 8
Standard Modules
Next: 8.130 Shell
 

8.129 SelfLoader

Used when you want to include functions in your program, but you want to load them only if necessary. Functions to be self-loaded are placed after the line:

__DATA__
in your program. When the code is compiled, compilation stops at the __DATA__ token. The SelfLoader exports the AUTOLOAD subroutine to the package; this subroutine loads the subroutines after __DATA__ when they are require d.


Previous: 8.128 SelectSaver Perl in a Nutshell Next: 8.130 Shell
8.128 SelectSaver Book Index 8.130 Shell