/
usr
/
share
/
perl5
/
vendor_perl
/
/usr/share/perl5/vendor_perl
mkdir
upload
Name
Size
Mode
Actions
Algorithm/
-
0755
rm
App/
-
0755
rm
Archive/
-
0755
rm
Authen/
-
0755
rm
autodie/
-
0755
rm
B/
-
0755
rm
Carp/
-
0755
rm
Config/
-
0755
rm
CPAN/
-
0755
rm
Data/
-
0755
rm
Date/
-
0755
rm
Digest/
-
0755
rm
Encode/
-
0755
rm
Error/
-
0755
rm
Exporter/
-
0755
rm
ExtUtils/
-
0755
rm
File/
-
0755
rm
Filter/
-
0755
rm
Getopt/
-
0755
rm
Git/
-
0755
rm
HTML/
-
0755
rm
HTTP/
-
0755
rm
inc/
-
0755
rm
IO/
-
0755
rm
IPC/
-
0755
rm
JSON/
-
0755
rm
lib/
-
0755
rm
libwww/
-
0755
rm
local/
-
0755
rm
Locale/
-
0755
rm
LWP/
-
0755
rm
Math/
-
0755
rm
Module/
-
0755
rm
Mozilla/
-
0755
rm
MRO/
-
0755
rm
Net/
-
0755
rm
Package/
-
0755
rm
Params/
-
0755
rm
Parse/
-
0755
rm
Perl/
-
0755
rm
PerlIO/
-
0755
rm
Pod/
-
0755
rm
POD2/
-
0755
rm
Software/
-
0755
rm
Sub/
-
0755
rm
TAP/
-
0755
rm
Term/
-
0755
rm
Test/
-
0755
rm
Test2/
-
0755
rm
Text/
-
0755
rm
Thread/
-
0755
rm
Time/
-
0755
rm
Try/
-
0755
rm
Types/
-
0755
rm
WWW/
-
0755
rm
autodie.pm
12886
0644
edit
dl
rm
bigint.pm
23398
0644
edit
dl
rm
bignum.pm
21137
0644
edit
dl
rm
bigrat.pm
16154
0644
edit
dl
rm
Carp.pm
31043
0644
edit
dl
rm
constant.pm
14724
0644
edit
dl
rm
CPAN.pm
141325
0644
edit
dl
rm
Digest.pm
10706
0644
edit
dl
rm
Env.pm
5524
0644
edit
dl
rm
Error.pm
24872
0644
edit
dl
rm
Expect.pm
100447
0644
edit
dl
rm
experimental.pm
6993
0644
edit
dl
rm
Exporter.pm
18746
0644
edit
dl
rm
Fatal.pm
58176
0644
edit
dl
rm
Git.pm
48072
0644
edit
dl
rm
LWP.pm
21676
0644
edit
dl
rm
newgetopt.pl
2206
0644
edit
dl
rm
ok.pm
967
0644
edit
dl
rm
parent.pm
2575
0644
edit
dl
rm
perldoc.pod
9376
0644
edit
dl
rm
perlfaq.pm
77
0644
edit
dl
rm
perlfaq.pod
22757
0644
edit
dl
rm
perlfaq1.pod
14457
0644
edit
dl
rm
perlfaq2.pod
9466
0644
edit
dl
rm
perlfaq3.pod
37535
0644
edit
dl
rm
perlfaq4.pod
89399
0644
edit
dl
rm
perlfaq5.pod
55506
0644
edit
dl
rm
perlfaq6.pod
39618
0644
edit
dl
rm
perlfaq7.pod
37816
0644
edit
dl
rm
perlfaq8.pod
50105
0644
edit
dl
rm
perlfaq9.pod
14847
0644
edit
dl
rm
perlglossary.pod
137232
0644
edit
dl
rm
Test2.pm
6393
0644
edit
dl
rm
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<parent> 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<require> 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<base> to remove the cruft that had accumulated in it. =head1 CAVEATS =head1 SEE ALSO L<base> =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<< <corion@cpan.org> >> Based on the idea of C<base.pm>, which was introduced with Perl 5.004_04. =head1 LICENSE This module is released under the same terms as Perl itself. =cut
Save
cmd:
run