Perl::Build::Built - A utility class to work with recently built perl installs.
my $result = Perl::Build->install( ... ); $result->run_env(sub{ # Run code on the installed perl system('perl', .... ); });
Run &code inside an environment configured to use the built perl.
&code
$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',.... ); });
You probably don't need to call this, ever.
Returns the path the Perl was installed to ( Just whatever was passed to new )
new
Returns the path to the 'bin' dir inside the installed Perl target directory.
Returns the path to the 'man' dir inside the installed Perl target directory.
bin_path prefixed onto $ENV{PATH}
bin_path
$ENV{PATH}
man_path prefixed onto $ENV{MANPATH}
man_path
$ENV{MANPATH}
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Perl::Build, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Build
CPAN shell
perl -MCPAN -e shell install Perl::Build
For more information on module installation, please visit the detailed CPAN module installation guide.