[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.59.167: ~ $
package Module::Build::Config;

use strict;
use vars qw($VERSION);
$VERSION = '0.4005';
$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;

Filemanager

Name Type Size Permission Actions
Platform Folder 0755
API.pod File 66.87 KB 0644
Authoring.pod File 10.75 KB 0644
Base.pm File 162.47 KB 0644
Bundling.pod File 4.96 KB 0644
Compat.pm File 17.96 KB 0644
Config.pm File 1.08 KB 0644
ConfigData.pm File 6.96 KB 0644
Cookbook.pm File 16.93 KB 0644
Dumper.pm File 446 B 0644
ModuleInfo.pm File 625 B 0644
Notes.pm File 8.33 KB 0644
PPMMaker.pm File 4.54 KB 0644
PodParser.pm File 1.31 KB 0644
Version.pm File 361 B 0644
YAML.pm File 401 B 0644