PATH: //proc/2452213/root/usr/share/perl5/vendor_perl
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
π Algorithm/
X
π App/
X
π Archive/
X
π Authen/
X
π CPAN/
X
π CPAN.pm
β
X
π Carp/
X
π Carp.pm
β
X
π Config/
X
π Data/
X
π Date/
X
π Digest/
X
π Digest.pm
β
X
π Encode/
X
π Env.pm
β
X
π Error/
X
π Error.pm
β
X
π Expect.pm
β
X
π Exporter/
X
π Exporter.pm
β
X
π ExtUtils/
X
π Fatal.pm
β
X
π File/
X
π Filter/
X
π Getopt/
X
π Git/
X
π Git.pm
β
X
π HTML/
X
π HTTP/
X
π IO/
X
π IPC/
X
π Importer.pm
β
X
π JSON/
X
π LWP/
X
π LWP.pm
β
X
π Locale/
X
π MIME/
X
π MRO/
X
π Math/
X
π Module/
X
π Mozilla/
X
π Net/
X
π Object/
X
π POD2/
X
π Package/
X
π Params/
X
π Parse/
X
π Perl/
X
π PerlIO/
X
π Pod/
X
π Software/
X
π Sub/
X
π TAP/
X
π Term/
X
π Test/
X
π Test2/
X
π Test2.pm
β
X
π Text/
X
π Thread/
X
π Tie/
X
π Time/
X
π TimeDate.pm
β
X
π Try/
X
π Types/
X
π WWW/
X
π autodie/
X
π autodie.pm
β
X
π bigint.pm
β
X
π bignum.pm
β
X
π bigrat.pm
β
X
π constant.pm
β
X
π experimental.pm
β
X
π inc/
X
π lib/
X
π libwww/
X
π local/
X
π newgetopt.pl
β
X
π ok.pm
β
X
π parent.pm
β
X
π perldoc.pod
β
X
π perlfaq.pm
β
X
π perlfaq.pod
β
X
π perlfaq1.pod
β
X
π perlfaq2.pod
β
X
π perlfaq3.pod
β
X
π perlfaq4.pod
β
X
π perlfaq5.pod
β
X
π perlfaq6.pod
β
X
π perlfaq7.pod
β
X
π perlfaq8.pod
β
X
π perlfaq9.pod
β
X
π perlglossary.pod
β
X
π perlxs.pod
β
X
π perlxstut.pod
β
X
π perlxstypemap.pod
β
X
SAVING...
BERHASIL DIUBAH!
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
SIMPAN PERUBAHAN