003 File Manager
Current Path:
/usr/local/lib/perl5/5.32
usr
/
local
/
lib
/
perl5
/
5.32
/
π
..
π
AnyDBM_File.pm
(2.56 KB)
π
App
π
Archive
π
Attribute
π
AutoLoader.pm
(15.43 KB)
π
AutoSplit.pm
(19.18 KB)
π
B
π
Benchmark.pm
(30.3 KB)
π
CORE.pod
(3.11 KB)
π
CPAN
π
CPAN.pm
(142.8 KB)
π
Carp
π
Carp.pm
(35.12 KB)
π
Class
π
Compress
π
Config
π
DB.pm
(18.48 KB)
π
DBM_Filter
π
DBM_Filter.pm
(14.05 KB)
π
Devel
π
Digest
π
Digest.pm
(10.45 KB)
π
DirHandle.pm
(2.04 KB)
π
Dumpvalue.pm
(17.25 KB)
π
Encode
π
English.pm
(4.65 KB)
π
Env.pm
(5.39 KB)
π
Exporter
π
Exporter.pm
(18.36 KB)
π
ExtUtils
π
Fatal.pm
(57.64 KB)
π
File
π
FileCache.pm
(5.42 KB)
π
FileHandle.pm
(6.63 KB)
π
Filter
π
FindBin.pm
(4.45 KB)
π
Getopt
π
HTTP
π
I18N
π
IO
π
IPC
π
Internals.pod
(2.51 KB)
π
JSON
π
Locale
π
Math
π
Memoize
π
Memoize.pm
(35.34 KB)
π
Module
π
NEXT.pm
(18.54 KB)
π
Net
π
Params
π
Parse
π
Perl
π
PerlIO
π
PerlIO.pm
(14.1 KB)
π
Pod
π
Safe.pm
(24.77 KB)
π
Search
π
SelectSaver.pm
(1.05 KB)
π
SelfLoader.pm
(17.27 KB)
π
Symbol.pm
(4.69 KB)
π
TAP
π
Term
π
Test
π
Test.pm
(29.34 KB)
π
Test2
π
Test2.pm
(6.24 KB)
π
Text
π
Thread
π
Thread.pm
(8.09 KB)
π
Tie
π
Time
π
UNIVERSAL.pm
(6.44 KB)
π
Unicode
π
User
π
XSLoader.pm
(10.99 KB)
π
_charnames.pm
(33.35 KB)
π
autodie
π
autodie.pm
(12.23 KB)
π
autouse.pm
(4.14 KB)
π
base.pm
(10.7 KB)
π
bigint.pm
(22.85 KB)
π
bignum.pm
(20.64 KB)
π
bigrat.pm
(15.78 KB)
π
blib.pm
(2.01 KB)
π
bytes.pm
(3.65 KB)
π
bytes_heavy.pl
(758 B)
π
charnames.pm
(20.44 KB)
π
constant.pm
(14.38 KB)
π
deprecate.pm
(4.5 KB)
π
diagnostics.pm
(18.85 KB)
π
dumpvar.pl
(15.19 KB)
π
encoding
π
experimental.pm
(6.9 KB)
π
feature.pm
(18.56 KB)
π
fields.pm
(9.25 KB)
π
filetest.pm
(3.91 KB)
π
if.pm
(3.53 KB)
π
integer.pm
(3.18 KB)
π
less.pm
(3.13 KB)
π
locale.pm
(4.74 KB)
π
mach
π
meta_notation.pm
(2.07 KB)
π
ok.pm
(967 B)
π
open.pm
(8.31 KB)
π
overload
π
overload.pm
(52.05 KB)
π
overloading.pm
(1.77 KB)
π
parent.pm
(2.64 KB)
π
perl
π
perl5db.pl
(309.69 KB)
π
perlfaq.pm
(77 B)
π
pod
π
sigtrap.pm
(8.53 KB)
π
sort.pm
(3.82 KB)
π
strict.pm
(4.63 KB)
π
subs.pm
(901 B)
π
unicore
π
utf8.pm
(10.18 KB)
π
vars.pm
(2.4 KB)
π
version
π
version.pm
(1.93 KB)
π
version.pod
(9.6 KB)
π
vmsish.pm
(4.21 KB)
π
warnings
π
warnings.pm
(49.35 KB)
Editing: parent.pm
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<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 =over 4 =item L<base> =item L<parent::versioned> A fork of L<parent> 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<< <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
Upload File
Create Folder