Perl-Repository-APC
view release on metacpan or search on metacpan
lib/Perl/Repository/APC.pm view on Meta::CPAN
}
my $proto = shift;
my $class = ref $proto || $proto;
my $dir = shift;
my $self;
$self->{DIR} = $dir;
$self->{APC} = [_apc_struct($dir)];
bless $self => $class;
}
sub apcdirs {
my($self) = @_;
@{$self->{APC}};
}
sub tarball {
unless (@_ == 2){
require Carp;
lib/Perl/Repository/APC/BAP.pm view on Meta::CPAN
Carp::croak(sprintf "Not enough arguments for %s -> new ()\n", __PACKAGE__);
}
my $proto = shift;
my $class = ref $proto || $proto;
my $apc = shift;
my $self;
$self->{APC} = $apc;
bless $self => $class;
}
sub translate {
my($self,$branch,$baseperl,$patchlevel) = @_;
die sprintf "%s -> translate called without a branch argument", __PACKAGE__
unless $branch;
my($prev, $nextperl, @patches, @ver);
my $apc = $self->{APC};
if ($branch eq "perl") {
$prev = "0";
( run in 0.392 second using v1.01-cache-2.11-cpan-65fba6d93b7 )