/usr/share/perl5/vendor_perl
NameSizeModeActions
Algorithm/-0755rm
App/-0755rm
Archive/-0755rm
Authen/-0755rm
autodie/-0755rm
B/-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
Module/-0755rm
Mozilla/-0755rm
MRO/-0755rm
Net/-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
Time/-0755rm
Try/-0755rm
Types/-0755rm
WWW/-0755rm
autodie.pm128860644editdlrm
bigint.pm233980644editdlrm
bignum.pm211370644editdlrm
bigrat.pm161540644editdlrm
Carp.pm310430644editdlrm
constant.pm147240644editdlrm
CPAN.pm1413250644editdlrm
Digest.pm107060644editdlrm
Env.pm55240644editdlrm
Error.pm248720644editdlrm
Expect.pm1004470644editdlrm
experimental.pm69930644editdlrm
Exporter.pm187460644editdlrm
Fatal.pm581760644editdlrm
Git.pm480720644editdlrm
LWP.pm216760644editdlrm
newgetopt.pl22060644editdlrm
ok.pm9670644editdlrm
parent.pm25750644editdlrm
perldoc.pod93760644editdlrm
perlfaq.pm770644editdlrm
perlfaq.pod227570644editdlrm
perlfaq1.pod144570644editdlrm
perlfaq2.pod94660644editdlrm
perlfaq3.pod375350644editdlrm
perlfaq4.pod893990644editdlrm
perlfaq5.pod555060644editdlrm
perlfaq6.pod396180644editdlrm
perlfaq7.pod378160644editdlrm
perlfaq8.pod501050644editdlrm
perlfaq9.pod148470644editdlrm
perlglossary.pod1372320644editdlrm
Test2.pm63930644editdlrm
Edit: /usr/share/perl5/vendor_perl/parent.pm (2575B)
package parent; use strict; our $VERSION = '0.237'; 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 L =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