perl-SelfLoader - Automatic function loader (using __DATA__)

Distribution: OpenMandriva Lx 3.0
Repository: OpenMandriva Contrib i586
Package name: perl-SelfLoader
Package version: 1.180.0
Package release: 4-omv2015.0
Package architecture: noarch
Package type: rpm
Installed size: 35.40 KB
Download size: 18.99 KB
Official Mirror:
This module tells its users that functions in the FOOBAR package are to be autoloaded from after the '__DATA__' token. See also the perlsub/"Autoloading" manpage. The __DATA__ token The '__DATA__' token tells the perl compiler that the perl code for compilation is finished. Everything after the '__DATA__' token is available for reading via the filehandle FOOBAR::DATA, where FOOBAR is the name of the current package when the '__DATA__' token is reached. This works just the same as '__END__' does in package 'main', but for other modules data after '__END__' is not automatically retrievable, whereas data after '__DATA__' is. The '__DATA__' token is not recognized in versions of perl prior to 5.001m. Note that it is possible to have '__DATA__' tokens in the same package in multiple files, and that the last '__DATA__' token in a given package that is encountered by the compiler is the one accessible by the filehandle. This also applies to '__END__' and main, i.e. if the 'main' program has an '__END__', but a module 'require'd (_not_ 'use'd) by that program has a 'package main;' declaration followed by an ''__DATA__'', then the 'DATA' filehandle is set to access the data after the '__DATA__' in the module, _not_ the data after the '__END__' token in the 'main' program, since the compiler encounters the 'require'd file later.



  • perl(SelfLoader) == 1.180.0
  • perl-SelfLoader == 1.180.0-4:2015.0

    Install Howto

    1. Enable OpenMandriva Contrib repository on Install and Remove Software"
    2. Update packages list:
      # urpmi.update -a
    3. Install perl-SelfLoader rpm package:
      # urpmi perl-SelfLoader


    • /usr/lib/perl5/vendor_perl/5.20.1/
    • /usr/share/doc/perl-SelfLoader/Changes
    • /usr/share/doc/perl-SelfLoader/README
    • /usr/share/man/man3/SelfLoader.3pm.xz