ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП |
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы. |
7.2.3 AutoSplit - Split a Module for Autoloading# from a program
use AutoSplit;
autosplit_modules(@ARGV)
# or from the command line
perl -MAutoSplit -e 'autosplit( This function splits up your program or module into files that the AutoLoader module can handle. It is mainly used to build autoloading Perl library modules, especially complex ones like POSIX. It is used by both the standard Perl libraries and by the MakeMaker module to automatically configure libraries for autoloading. The The remaining three arguments to Here's a typical use of AutoSplit by the MakeMaker utility via the command line: perl -MAutoSplit -e 'autosplit($ARGV[0], $ARGV[1], 0, 1, 1)' MakeMaker defines this
as a make macro, and it is invoked with file and directory
arguments. The The In both usages of the autosplitter, only subroutines defined following the
Perl special marker Currently, AutoSplit cannot handle multiple package specifications within one file. AutoSplit will inform the user if it is necessary to create the top-level directory specified in the invocation. It's better if the script or installation process that invokes AutoSplit has created the full directory path ahead of time. This warning may indicate that the module is being split into an incorrect path. AutoSplit will also warn the user of subroutines whose names cause potential naming conflicts on machines with severely limited (eight characters or less) filename length. Since the subroutine name is used as the filename, these warnings can aid in portability to such systems. Warnings are issued and the file skipped if AutoSplit cannot locate
either the |