OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
perl5
/
vendor_perl
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
05/14/2024 03:38:06 PM
rwxr-xr-x
π
Carp
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Carp.pm
35.12 KB
06/27/2018 11:17:56 AM
rw-r--r--
π
Digest
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Digest.pm
10.96 KB
10/13/2020 07:59:05 PM
rw-r--r--
π
Error
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Error.pm
29.45 KB
01/28/2020 04:51:09 PM
rw-r--r--
π
Exporter
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Exporter.pm
18.36 KB
11/18/2019 10:21:28 PM
rw-r--r--
π
File
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Getopt
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Git
-
02/13/2025 09:24:57 PM
rwxr-xr-x
π
Git.pm
46.95 KB
12/17/2024 12:28:53 PM
rw-r--r--
π
HTTP
-
05/14/2024 03:10:02 PM
rwxr-xr-x
π
IO
-
10/03/2024 04:48:40 AM
rwxr-xr-x
π
Mail
-
05/14/2024 03:07:05 PM
rwxr-xr-x
π
Math
-
05/14/2024 03:38:06 PM
rwxr-xr-x
π
Mozilla
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Net
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Pod
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Term
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Text
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
Thread
-
05/14/2024 03:07:03 PM
rwxr-xr-x
π
Time
-
05/14/2024 12:06:27 PM
rwxr-xr-x
π
UUID
-
05/14/2024 04:34:37 PM
rwxr-xr-x
π
constant.pm
14.38 KB
02/16/2022 01:19:14 PM
rw-r--r--
π
newgetopt.pl
2.15 KB
07/09/2010 12:26:51 PM
rw-r--r--
π
parent.pm
2.64 KB
02/07/2020 07:43:09 AM
rw-r--r--
π
perldoc.pod
9.16 KB
08/02/2016 04:31:42 PM
rw-r--r--
Editing: parent.pm
Close
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