File: Root.pm

package info (click to toggle)
perlbrew 1.01-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 744 kB
  • sloc: perl: 9,241; makefile: 7; sh: 1
file content (37 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use strict;
use warnings;

package App::Perlbrew::Path::Root;

use App::Perlbrew::Path ();
use App::Perlbrew::Path::Installations ();

our @ISA = qw( App::Perlbrew::Path );

sub bin {
    shift->child(bin => @_);
}

sub build {
    shift->child(build => @_);
}

sub dists {
    shift->child(dists => @_);
}

sub etc {
    shift->child(etc => @_);
}

sub perls {
    my ($self, @params) = @_;

    my $return = $self->_child('App::Perlbrew::Path::Installations', 'perls');
    $return = $return->child(@params) if @params;

    return $return;
}

1;