App-perlbrew
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/perlbrew.pm view on Meta::CPAN
both => [],
append => '',
reverse => 0,
verbose => 0,
);
$opt{$_} = '' for keys %flavor;
if (@argv) {
# build a local @ARGV to allow us to use an older
# Getopt::Long API in case we are building on an older system
local (@ARGV) = @argv;
Getopt::Long::Configure(
'pass_through',
'no_ignore_case',
'bundling',
'permute', # default behaviour except 'exec'
);
$class->parse_cmdline( \%opt );
t/12.sitecustomize.t view on Meta::CPAN
my @installed = grep { !$_->{is_external} } $app->installed_perls;
is 0+@installed, 1, "found 1 installed perl";
is $installed[0]->{name}, "perl-5.14.2", "found expected perl";
my $root = App::Perlbrew::Path->new ($ENV{PERLBREW_ROOT});
my $perldir = $root->child("perls", "perl-5.14.2");
my $installedsite = $perldir->child('lib', 'site_perl', '5.14.2', 'sitecustomize.pl');
ok( -f $installedsite, "sitecustomize.pl installed" );
my $guts = do { local (@ARGV, $/) = $installedsite; <> };
is( $guts, "use strict;\n", "sitecustomize.pl contents correct" );
};
done_testing;
# vim: ts=4 sts=4 sw=4 et:
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.297 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )