NAME

Perl::Build::Built - A utility class to work with recently built perl installs.

SYNOPSIS

my $result = Perl::Build->install( ... );
$result->run_env(sub{
    # Run code on the installed perl
    system('perl', .... );
});

METHODS

$instance->run_env(\&code)

Run &code inside an environment configured to use the built perl.

$instance->run_env(sub{
    my $cpanm_path = catfile( $instance->bin_path , 'cpanm' );
    system('wget','-O', $cpanm_path, 'http://path/to/cpanm');
    system('chmod', 'u+x', $cpanm_path );
    system('cpanm', "App::cpanoutdated");
    system('perl',.... );
});
Perl::Build::Built->new( \%params )

You probably don't need to call this, ever.

$instance->installed_path

Returns the path the Perl was installed to ( Just whatever was passed to new )

$instance->bin_path

Returns the path to the 'bin' dir inside the installed Perl target directory.

$instance->man_path

Returns the path to the 'man' dir inside the installed Perl target directory.

$instance->combined_bin_path

bin_path prefixed onto $ENV{PATH}

$instance->combined_man_path

man_path prefixed onto $ENV{MANPATH}

AUTHOR

Kent Fredric <kentnl@cpan.org>
Tokuhiro Matsuno <tokuhirom@gmail.com>

LICENSE

Copyright (C) Tokuhiro Matsuno

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.