Name : perl-AutoLoader
| |
Version : 5.74
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.2.1
| Date : 2024-07-15 23:03:46
|
Group : Unspecified
| Source RPM : perl-AutoLoader-5.74-lp155.2.1.src.rpm
|
Size : 0.07 MB
| |
Packager : https://www_suse_com/
| |
Summary : Load subroutines only on demand
|
Description :
The *AutoLoader* module works with the *AutoSplit* module and the \'__END__\' token to defer the loading of some subroutines until they are used rather than loading them all at once.
To use *AutoLoader*, the author of a module has to place the definitions of subroutines to be autoloaded after an \'__END__\' token. (See perldata.) The *AutoSplit* module can then be run manually to extract the definitions into individual files _auto/funcname.al_.
*AutoLoader* implements an AUTOLOAD subroutine. When an undefined subroutine in is called in a client module of *AutoLoader*, *AutoLoader*\'s AUTOLOAD subroutine attempts to locate the subroutine in a file with a name related to the location of the file from which the client module was read. As an example, if _POSIX.pm_ is located in _/usr/local/lib/perl5/POSIX.pm_, *AutoLoader* will look for perl subroutines *POSIX* in _/usr/local/lib/perl5/auto/POSIX/*.al_, where the \'.al\' file has the same name as the subroutine, sans package. If such a file exists, AUTOLOAD will read and evaluate it, thus (presumably) defining the needed subroutine. AUTOLOAD will then \'goto\' the newly defined subroutine.
Once this process completes for a given function, it is defined, so future calls to the subroutine will bypass the AUTOLOAD mechanism.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.5/noarch |