/usr/share/perl5/vendor_perl
NameSizeModeActions
Algorithm/-0755rm
App/-0755rm
Archive/-0755rm
Authen/-0755rm
autodie/-0755rm
Carp/-0755rm
Config/-0755rm
CPAN/-0755rm
Data/-0755rm
Date/-0755rm
Digest/-0755rm
Encode/-0755rm
Error/-0755rm
Exporter/-0755rm
ExtUtils/-0755rm
File/-0755rm
Filter/-0755rm
Getopt/-0755rm
Git/-0755rm
HTML/-0755rm
HTTP/-0755rm
inc/-0755rm
IO/-0755rm
IPC/-0755rm
JSON/-0755rm
lib/-0755rm
libwww/-0755rm
local/-0755rm
Locale/-0755rm
LWP/-0755rm
Math/-0755rm
MIME/-0755rm
Module/-0755rm
Mozilla/-0755rm
MRO/-0755rm
Net/-0755rm
Object/-0755rm
Package/-0755rm
Params/-0755rm
Parse/-0755rm
Perl/-0755rm
PerlIO/-0755rm
Pod/-0755rm
POD2/-0755rm
Software/-0755rm
Sub/-0755rm
TAP/-0755rm
Term/-0755rm
Test/-0755rm
Test2/-0755rm
Text/-0755rm
Thread/-0755rm
Tie/-0755rm
Time/-0755rm
Try/-0755rm
Types/-0755rm
WWW/-0755rm
autodie.pm124360644editdlrm
bigint.pm233980644editdlrm
bignum.pm211370644editdlrm
bigrat.pm161540644editdlrm
Carp.pm359590644editdlrm
constant.pm147240644editdlrm
CPAN.pm1478620644editdlrm
Digest.pm112250644editdlrm
Env.pm55240644editdlrm
Error.pm301520644editdlrm
Expect.pm1004470644editdlrm
experimental.pm75700644editdlrm
Exporter.pm188050644editdlrm
Fatal.pm590850644editdlrm
Git.pm483720644editdlrm
Importer.pm425290644editdlrm
LWP.pm216760644editdlrm
newgetopt.pl22060644editdlrm
ok.pm9670644editdlrm
parent.pm27020644editdlrm
perldoc.pod93760644editdlrm
perlfaq.pm770644editdlrm
perlfaq.pod227950644editdlrm
perlfaq1.pod144290644editdlrm
perlfaq2.pod93770644editdlrm
perlfaq3.pod376010644editdlrm
perlfaq4.pod908140644editdlrm
perlfaq5.pod552920644editdlrm
perlfaq6.pod395370644editdlrm
perlfaq7.pod378160644editdlrm
perlfaq8.pod499360644editdlrm
perlfaq9.pod152210644editdlrm
perlglossary.pod1372320644editdlrm
perlxs.pod843240644editdlrm
perlxstut.pod500950644editdlrm
perlxstypemap.pod240010644editdlrm
Test2.pm63930644editdlrm
TimeDate.pm2670644editdlrm
Edit: /usr/share/perl5/vendor_perl/parent.pm (2702B)
package parent; use strict; our $VERSION = '0.238'; sub import { my $class = shift; my $inheritor = caller(0); if ( @_ and $_[0] eq '-norequire' ) { shift @_; } else { for ( my @filename = @_ ) { s{::|'}{/}g; require "$_.pm"; # dies if the file is not found } } { no strict 'refs'; push @{"$inheritor\::ISA"}, @_; # dies if a loop is detected }; }; 1; __END__ =encoding utf8 =head1 NAME parent - Establish an ISA relationship with base classes at compile time =head1 SYNOPSIS package Baz; use parent qw(Foo Bar); =head1 DESCRIPTION Allows you to both load one or more modules, while setting up inheritance from those modules at the same time. Mostly similar in effect to package Baz; BEGIN { require Foo; require Bar; push @ISA, qw(Foo Bar); } By default, every base class needs to live in a file of its own. If you want to have a subclass and its parent class in the same file, you can tell C not to load any modules by using the C<-norequire> switch: package Foo; sub exclaim { "I CAN HAS PERL" } package DoesNotLoadFooBar; use parent -norequire, 'Foo', 'Bar'; # will not go looking for Foo.pm or Bar.pm This is equivalent to the following code: package Foo; sub exclaim { "I CAN HAS PERL" } package DoesNotLoadFooBar; push @DoesNotLoadFooBar::ISA, 'Foo', 'Bar'; This is also helpful for the case where a package lives within a differently named file: package MyHash; use Tie::Hash; use parent -norequire, 'Tie::StdHash'; This is equivalent to the following code: package MyHash; require Tie::Hash; push @ISA, 'Tie::StdHash'; If you want to load a subclass from a file that C would not consider an eligible filename (that is, it does not end in either C<.pm> or C<.pmc>), use the following code: package MySecondPlugin; require './plugins/custom.plugin'; # contains Plugin::Custom use parent -norequire, 'Plugin::Custom'; =head1 HISTORY This module was forked from L to remove the cruft that had accumulated in it. =head1 CAVEATS =head1 SEE ALSO =over 4 =item L =item L A fork of L that provides version checking in parent class modules. =back =head1 AUTHORS AND CONTRIBUTORS Rafaël Garcia-Suarez, Bart Lateur, Max Maischein, Anno Siegel, Michael Schwern =head1 MAINTAINER Max Maischein C< corion@cpan.org > Copyright (c) 2007-2017 Max Maischein C<< >> Based on the idea of C, which was introduced with Perl 5.004_04. =head1 LICENSE This module is released under the same terms as Perl itself. =cut