ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы.



Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.3 AutoLoaderChapter 8
Standard Modules
Next: 8.5 autouse
 

8.4 AutoSplit

Splits a program or module into files that the AutoLoader can handle. It can be called from a program or from the command line:

# from a program
use AutoSplit;
autosplit_modules(@ARGV)

# from the command line
perl -MAutoSplit -e 'autosplit(FILE, DIR, KEEP, CHECK, MODTIME)' ... 

# another interface
perl -MAutoSplit -e 'autosplit_lib_modules(@ARGV)' ...
AutoSplit is used by MakeMaker as well as the standard Perl libraries. It operates on a file, splitting off subroutines that come after the __END__ marker and storing them as described above for AutoLoader, creating any necessary directories along the way. AutoSplit has two functions:


Previous: 8.3 AutoLoaderPerl in a NutshellNext: 8.5 autouse
8.3 AutoLoaderBook Index8.5 autouse