X7ROOT File Manager
Current Path:
/usr/share/perl5/vendor_perl/Module/Build
usr
/
share
/
perl5
/
vendor_perl
/
Module
/
Build
/
??
..
??
API.pod
(67.09 KB)
??
Authoring.pod
(10.75 KB)
??
Base.pm
(161.33 KB)
??
Bundling.pod
(4.99 KB)
??
Compat.pm
(18.1 KB)
??
Config.pm
(1.08 KB)
??
ConfigData.pm
(6.68 KB)
??
Cookbook.pm
(16.93 KB)
??
Dumper.pm
(454 B)
??
Notes.pm
(8.12 KB)
??
PPMMaker.pm
(4.43 KB)
??
Platform
??
PodParser.pm
(1.27 KB)
Editing: Config.pm
package Module::Build::Config; use strict; use warnings; our $VERSION = '0.4224'; $VERSION = eval $VERSION; use Config; sub new { my ($pack, %args) = @_; return bless { stack => {}, values => $args{values} || {}, }, $pack; } sub get { my ($self, $key) = @_; return $self->{values}{$key} if ref($self) && exists $self->{values}{$key}; return $Config{$key}; } sub set { my ($self, $key, $val) = @_; $self->{values}{$key} = $val; } sub push { my ($self, $key, $val) = @_; push @{$self->{stack}{$key}}, $self->{values}{$key} if exists $self->{values}{$key}; $self->{values}{$key} = $val; } sub pop { my ($self, $key) = @_; my $val = delete $self->{values}{$key}; if ( exists $self->{stack}{$key} ) { $self->{values}{$key} = pop @{$self->{stack}{$key}}; delete $self->{stack}{$key} unless @{$self->{stack}{$key}}; } return $val; } sub values_set { my $self = shift; return undef unless ref($self); return $self->{values}; } sub all_config { my $self = shift; my $v = ref($self) ? $self->{values} : {}; return {%Config, %$v}; } 1;
Upload File
Create Folder