/usr/share/perl5/Carton/Mirror.pm is in carton 1.0.28-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | package Carton::Mirror;
use strict;
use Class::Tiny qw( url );
our $DefaultMirror = 'http://cpan.metacpan.org/';
sub BUILDARGS {
my($class, $url) = @_;
return { url => $url };
}
sub default {
my $class = shift;
$class->new($DefaultMirror);
}
sub is_default {
my $self = shift;
$self->url eq $DefaultMirror;
}
1;
|